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