Vector3D:CreateNormalVectorFromYawPitch()

From Warcraft Wiki
Jump to navigation Jump to search
This function is implemented in :CreateNormalVectorFromYawPitch FrameXML/Vector3D.lua.

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

References

 
  1. ^ 2020-01-14, Vector3D.lua, version 8.3.0.33062, near line 82, archived at Townlong-Yak