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 ofxandycomponents β¨
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 π¦β¨π
π¦ where this page comes from
- debian bookworm: inventor-doc 2.1.5-10+dfsg-2 Β· LGPL-2.0-or-later
- debian trixie: inventor-doc 2.1.6+ds-2 Β· LGPL-2.0-or-later
- ubuntu jammy: inventor-doc 2.1.5-10-24
- ubuntu noble: inventor-doc 2.1.5-10+dfsg-2.1build2 Β· LGPL-2.0-or-later
- ubuntu questing: inventor-doc 2.1.6+ds-2
- ubuntu resolute: inventor-doc 2.1.6.1+ds-1 Β· LGPL-2.0-or-later
- ubuntu stonking: inventor-doc 2.1.6.1+ds-1 Β· LGPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms