Union Bytes EngineModulesMathQuaternionqFromEuler

Union Bytes Engine

GeneralHilfeseitensyntaxModules
AnimationBillboardCageCameraControlDefinitionDrawingFontGadgetGeneralJoystickLightMaterialMath
Quaternion
qFromEulerqInverseqMultiplicationqMultiplyqNormalizationqNormalize
Vector
MeshNetworkNodeObjectParticlePhysicShaderSoundsSpriteTexture

qFromEulerFUNCTION

Description

Sets the specified quaternion using the specified Euler angles.

Syntax

*qTarget.UBE_QUATERNION = UBE_qFromEuler( *qTarget.UBE_QUATERNION, Pitch.f, Yaw.f, Roll.f [, Mode.i] )

Parameters

*qTarget A valid pointer to a quaternion
Pitch, Yaw, Roll The values of the three rotations
Mode One of following constants:
#UBE_DEGREE The angle unit is degree (default)
#UBE_RADIAN The angle unit is radian

Return value

The pointer to the quaternion.

See also

Union Bytes | Login