@interface SCIMath3D : NSObject
Helper class to expose certain 3-D math functions.
Yawangles from forward vector.
Notex - pitch value; y - yaw value.
+ (CGPoint)calculatePitchAndYawFromDirection:(nonnull SCIVector3 *)direction;
The forward vector.
CGPointwhich stores calculated pitch and yaw.
Computation of normalized direction vector from
+ (void)pitch:(float)pitch andYaw:(float)yaw toDirection:(nonnull SCIVector3 *)direction;
The pitch in
The yaw in
The vector where computed direction should be stored.