Union Bytes EngineModulesMathVectorv4fLength

Union Bytes Engine

GeneralHilfeseitensyntaxModules
AnimationBillboardCageCameraControlDefinitionDrawingFontGadgetGeneralJoystickLightMaterialMath
QuaternionVector
v4fAddv4fAdditionv4fChangev4fDotv4fLengthv4fSetVECTOR4f
MeshNetworkNodeObjectParticlePhysicShaderSoundsSpriteTexture

v4fLength

Description

Returns the length of the given homogeneous vectors.

Syntax

fLength.f = UBE_v4fLength( *v4fSource.UBE_VECTOR4f )

Parameters

*v4fSource A valid pointer to a homogeneous vector.

Return value

The length of the homogeneous vector.

Remarks

length = sqrt( dot(S, S) )
length = sqrt( Sx2 + Sy2 + Sz2 )

See also

Union Bytes | Login