SODECOMPOSEVEC2F(3iv)

πŸ’– SoDecomposeVec2f β€” the 3IV manual, but make it cute πŸ’–

okay bestie, so this is the manual page for SoDecomposeVec2f, from the 3IV manual section (yes that's the little manual-name tag, consider it folded in, we're not doing boring header lines today). It's a whole engine that takes your 2D vectors and pulls them apart into their little float components. no cap, it's giving "I split things" and honestly? obsessed. πŸ¦‹


✨ NAME ✨

SoDecomposeVec2f β€” decomposes 2D vectors into floating-point values πŸ’…

like, that's literally the whole job. it decomposes. 2D vectors. into floating-point values. periodt.


🌸 INHERITS FROM 🌸

SoBase > SoFieldContainer > SoEngine > SoDecomposeVec2f

so it's got a whole ancestry going on β€” it inherits all the way down through SoBase, SoFieldContainer, and SoEngine before it becomes its own main character SoDecomposeVec2f. generational talent fr fr πŸ‘‘


⭐ SYNOPSIS ⭐

#include <Inventor/engines/SoCompose.h>

Inputs from class SoDecomposeVec2f:

SoMFVec2f           vector

Outputs from class SoDecomposeVec2f:

(SoMFFloat)         x
(SoMFFloat)         y

Methods from class SoDecomposeVec2f:

                    SoDecomposeVec2f()

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

πŸ’œ DESCRIPTION πŸ’œ

so this engine takes a 2D vector as input, and decomposes it into two single floating-point values. like it just. pulls them apart. βœ‚οΈβœ¨

and here's the cute part: the input can have multiple values, which means the engine can decompose several vectors in parallel. multitasking queen behavior, we love to see it 🫢


πŸŽ€ INPUTS πŸŽ€

  • SoMFVec2f vector β€” Vector to be decomposed. that's the one getting taken apart, bestie.

🧚 OUTPUTS 🧚

  • (SoMFFloat) x β€” First component of the vector. πŸ“
  • (SoMFFloat) y β€” Second component of the vector. 🌈

πŸ’… METHODS πŸ’…

  • SoDecomposeVec2f() β€” Constructor. that's it, that's the method, it just exists and it's iconic for it πŸ’€

πŸ”₯ FILE FORMAT/DEFAULTS πŸ”₯

DecomposeVec2f {
    vector  0 0
}

see that vector 0 0? that's the default. if you don't give it anything, it's just sitting there at the origin, minding its business, zero and zero. lowkey relatable πŸ™ˆ


🌟 SEE ALSO 🌟

  • SoComposeVec2f
  • SoEngineOutput

just a lil reminder bestie: every flag, value, default, method signature and reference up there is exactly as it was written β€” the vibes are mine, the facts are not. πŸ’–

and that's the whole thing! this was SoDecomposeVec2f(3IV)() β€” source and version tag included, cute sign-off delivered, slay. go decompose some vectors, you've got this πŸ’…βœ¨πŸŒΈ