Union Bytes EngineModulesMathVectorv4fAddition

Union Bytes Engine

GeneralHilfeseitensyntaxModules
AnimationBillboardCageCameraControlDefinitionDrawingFontGadgetGeneralJoystickLightMaterialMath
QuaternionVector
v4fAddv4fAdditionv4fChangev4fDotv4fLengthv4fSetVECTOR4f
MeshNetworkNodeObjectParticlePhysicShaderSoundsSpriteTexture

v4fAdditionFUNCTION

Description

Adds the specified homogeneous vectors.

Syntax

*v4fTarget.UBE_VECTOR4f = UBE_v4fAddition( *v4fTarget.UBE_VECTOR4f,
                                           *v4fSource1.UBE_VECTOR4f, *v4fSource2.UBE_VECTOR4f )

Parameters

*v4fTarget A valid pointer to a homogeneous vector (result operand).
*v4fSource1 A valid pointer to a homogeneous vector (left operand).
*v4fSource2 A valid pointer to a homogeneous vector (right operand).

Return value

The pointer to the result homogeneous vector.

Remarks

Tx = S1x + S2x
Ty = S1y + S2y
Tz = S1z + S2z
Tw = max( S1w, S2w )

See also

Union Bytes | Login