Vector3D :CreateNormalVectorFromYawPitch()
Jump to navigation
Jump to search
- This function is implemented in
.:CreateNormalVectorFromYawPitch FrameXML/Vector3D.lua
- This function is implemented in
Constructs a unit vector in the given direction.
vector = CreateNormalVectorFromYawPitch(yawRadians, pitchRadians)
Arguments
- yawRadians
- number - Yaw about {0, 0, 1} going counter-clockwise from {1, 0, 0}.
- pitchRadians
- number - Pitch toward {0, 0, -1} from the nearest vector in the x,y plane.
Returns
- vector
- table - Vector3DMixin in the given direction.
Patch changes
- Patch 8.3.0 (2020-01-14): Added.[1]
References
- ^ 2020-01-14, Vector3D.lua, version 8.3.0.33062, near line 82, archived at Townlong-Yak