
iOS & macOS Charting Documentation - SciChart iOS & macOS Charts SDK v4.x
SCIMath3D
@interface SCIMath3D : NSObject
Helper class to expose certain 3-D math functions.
-
Computation of
Pitch
andYaw
angles from forward vector.Note
x - pitch value; y - yaw value.Declaration
Objective-C
+ (CGPoint)calculatePitchAndYawFromDirection:(nonnull SCIVector3 *)direction;
Parameters
direction
The forward vector.
Return Value
The
CGPoint
which stores calculated pitch and yaw. -
Computation of normalized direction vector from
Pitch
andYaw
.Declaration
Objective-C
+ (void)pitch:(float)pitch andYaw:(float)yaw toDirection:(nonnull SCIVector3 *)direction;
Parameters
pitch
The pitch in
Degrees
.yaw
The yaw in
Degrees
.direction
The vector where computed direction should be stored.