b3dTFormNormal

Transforms normal vector from src_entity space to dest_entity space and normalizes (stores in g_lastTFormedResult, retrieve with b3dTFormedX/Y/Z). Takes x/y/z (normal vector in src space), src_entity (source coordinate system, 0=world space), dest_entity (destination coordinate system, 0=world space). Returns nothing.

3D Graphics

Parameters & Returns

Parameters

x Double
y Double
z Double
src_entity Int
dest_entity Int

Returns

Void

Quick Summary

Transforms normal vector from src_entity space to dest_entity space and normalizes (stores in g_lastTFormedResult, retrieve with b3dTFormedX/Y/Z). Takes x/y/z (normal vector in src space), src_entity (source coordinate system, 0=world space), dest_entity (destination coordinate system, 0=world space). Returns nothing.

Technical Exegesis...

Transforms normal vector from src_entity space to dest_entity space and normalizes (stores in g_lastTFormedResult, retrieve with b3dTFormedX/Y/Z). Takes x/y/z (normal vector in src space), src_entity (source coordinate system, 0=world space), dest_entity (destination coordinate system, 0=world space). Returns nothing. Calls b3dTFormVector to transform vector (rotation only), normalizes result to unit length using XMVector3Normalize, stores in g_lastTFormedResult. Ensures output is unit-length normal.

Example

Example.bam
; No example implemented yet