SMC_MatrixMult (FUN) ¶ FUNCTION SMC_MatrixMult : BOOL InOut: Scope Name Type Return SMC_MatrixMult BOOL Input pm1 POINTER TO SMC_VECTOR3D pm2 POINTER TO SMC_VECTOR3D pm3 POINTER TO SMC_VECTOR3D pv POINTER TO SMC_VECTOR3D pvResult POINTER TO SMC_VECTOR3D
SMC_MatrixMultT (FUN) ¶ FUNCTION SMC_MatrixMultT : BOOL InOut: Scope Name Type Return SMC_MatrixMultT BOOL Input pm1 POINTER TO SMC_VECTOR3D pm2 POINTER TO SMC_VECTOR3D pm3 POINTER TO SMC_VECTOR3D pv POINTER TO SMC_VECTOR3D pvResult POINTER TO SMC_VECTOR3D
SMC_MultVector (FUN) ¶ FUNCTION SMC_MultVector : BOOL InOut: Scope Name Type Return SMC_MultVector BOOL Input pvSrc POINTER TO SMC_Vector3D pvDst POINTER TO SMC_Vector3D d LREAL
SMC_Norm2D (FUN) ¶ FUNCTION SMC_Norm2D : LREAL InOut: Scope Name Type Return SMC_Norm2D LREAL Input pvec POINTER TO SMC_VECTOR3D
SMC_Norm3D (FUN) ¶ FUNCTION SMC_Norm3D : LREAL InOut: Scope Name Type Return SMC_Norm3D LREAL Input pvec POINTER TO SMC_VECTOR3D
SMC_V3_Angle2D (FUN) ¶ FUNCTION SMC_V3_Angle2D : LREAL Computes the 2D angle (*) between two vectors in radian. Note: if one of the vectors has zero 2D length, the result is zero. The returned value is in the range [0 .. pi]. (*) The angle of the projections of the vectors to the X/Y plane. InOut: Scope Name Type Inout Const v1 SMC_VECTOR3D v2 SMC_VECTOR3D Return SMC_V3_Angle2D LREAL
SMC_V3_CloseRel (FUN) ¶ FUNCTION SMC_V3_CloseRel : BOOL Returns whether the relative difference of a and b is at most epsilon, that is if |a-b| <= eps * MAX(|a|, |b|), where the |.| denotes the euclidean norm. InOut: Scope Name Type Comment Inout Const a SMC_Vector3D b SMC_Vector3D Input eps LREAL The (non-negative) relative epsilon. Return SMC_V3_CloseRel BOOL
SMC_V3_Cross (FUN) ¶ FUNCTION SMC_V3_Cross Cross product for 3-dimensional vectors: vDst := vLhs x vRhs. InOut: Scope Name Type Inout vDst SMC_Vector3D Inout Const vLhs SMC_Vector3D vRhs SMC_Vector3D
SMC_V3_Derive (FUN) ¶ FUNCTION SMC_V3_Derive Computes the numerical derivative of two vectors v0 = v(x-h/2), v1 = v(x+h/2) as v = (v1 - v0) / h. InOut: Scope Name Type Comment Inout v SMC_Vector3D The difference quotient of the vectors Inout Const v0 SMC_VECTOR3D The vector evaluated h/2 to the left v1 SMC_VECTOR3D The vector evaluated h/2 to the right Input h LREAL The step size, must be <> 0
SMC_V3_MAdd (FUN) ¶ FUNCTION SMC_V3_MAdd Multiply-And-Add: vDst := vLhs + d * vRhs. InOut: Scope Name Type Inout vDst SMC_Vector3D Inout Const vLhs SMC_Vector3D vRhs SMC_Vector3D Input d LREAL