SOCOMPOSEVEC2F(3iv)

πŸ’– SoComposeVec2f β€” the manual page, but make it a group chat πŸ’–

okay bestie, welcome to the SoComposeVec2f(3IV) manual page ✨ yes that's the manual name, it's giving very "section 3, Inventor library" and we love that for it πŸ’…


🌸 NAME 🌸

SoComposeVec2f β€” composes 2D vectors from floating-point values πŸ¦‹

like, it literally takes floaty numbers and squishes them into a vector. that's the whole job. and it does it so well.


🧬 INHERITS FROM 🧬

SoBase > SoFieldContainer > SoEngine > SoComposeVec2f

the family tree is long but we respect every single ancestor πŸ‘‘


✨ SYNOPSIS ✨

#include <Inventor/engines/SoCompose.h>

Inputs from class SoComposeVec2f:

SoMFFloat           x
SoMFFloat           y

Outputs from class SoComposeVec2f:

(SoMFVec2f)         vector

Methods from class SoComposeVec2f:

                     SoComposeVec2f()

Methods from class SoEngine:

static SoType       getClassTypeId()
virtual int         getOutputs(SoEngineOutputList &list) const
SoEngineOutput *    getOutput(const SbName &outputName) const
SbBool              getOutputName(const SoEngineOutput *output, SbName
                         &outputName) const
SoEngine *          copy() const
static SoEngine *   getByName(const SbName &name)
static int          getByName(const SbName &name, SoEngineList &list)

Methods from class SoFieldContainer:

void                setToDefaults()
SbBool              hasDefaultValues() const
SbBool              fieldsAreEqual(const SoFieldContainer *fc) const
void                copyFieldValues(const SoFieldContainer *fc, SbBool
                         copyConnections = FALSE)
SbBool              set(const char *fieldDataString)
void                get(SbString &fieldDataString)
virtual int         getFields(SoFieldList &resultList) const
virtual SoField *   getField(const SbName &fieldName) const
SbBool              getFieldName(const SoField *field, SbName &fieldName)
                         const
SbBool              isNotifyEnabled() const
SbBool              enableNotify(SbBool flag)

Methods from class SoBase:

void                ref()
void                unref() const
void                unrefNoDelete() const
void                touch()
virtual SoType      getTypeId() const
SbBool              isOfType(SoType type) const
virtual void        setName(const SbName &name)
virtual SbName      getName() const

no cap, that's the full list, every single one of them 🫢


πŸ“– DESCRIPTION πŸ“–

so this engine takes two floating-point inputs and composes a 2D floating-point vector. that's it. that's the vibe. lowkey iconic πŸŽ€

here's the tea tho: the input fields can hold multiple values, which means the engine can compose several vectors in parallel β€” like a little factory line of vectors, all at once, highkey efficient ⭐

and if one of the inputs has more values than the other? no drama. the last value of the shorter input will be repeated as necessary. it just stretches. it pads. it fills the gap. main character energy fr fr πŸ’…


πŸ“ INPUTS πŸ“

  • SoMFFloat x β€” the x component πŸ’–
  • SoMFFloat y β€” the y component πŸ’–

that's the whole roster. two inputs. both essential. both serving.


🌈 OUTPUTS 🌈

  • (SoMFVec2f) vector β€” vector composed of x and y components ✨

the glow-up of two lil floats into one beautiful vector. we love to see it.


🧚 METHODS 🧚

  • SoComposeVec2f() β€” Constructor 🌸

literally the constructor. it constructs. it's giving beginning of everything.


πŸŽ€ FILE FORMAT/DEFAULTS πŸŽ€

ComposeVec2f {
    x  0
    y  0
}

both default to 0 because everybody starts somewhere, bestie 😭


πŸ‘‘ SEE ALSO πŸ‘‘

SoDecomposeVec2f, SoEngineOutput

(the reverse of this one, and the thing that holds the outputs β€” go say hi πŸ’œ)


⚠️ heads up: this page didn't come with extra warnings, and I'm not about to invent any. everything above is exactly what's in the source page, just with better energy.

and that's the whole page, bestie!! this little love letter came from the SoComposeVec2f(3IV)() manual page β€” that's the version/source tag hanging out down at the bottom, and the date lives there too πŸ’– go forth and compose your vectors, you absolute legend πŸ¦‹βœ¨πŸ’