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
PitchandYawangles from forward vector.Note
x - pitch value; y - yaw value.Declaration
Objective-C
+ (CGPoint)calculatePitchAndYawFromDirection:(nonnull SCIVector3 *)direction;Swift
class func calculatePitchAndYaw(fromDirection direction: SCIVector3) -> CGPointParameters
directionThe forward vector.
Return Value
The
CGPointwhich stores calculated pitch and yaw. -
Computation of normalized direction vector from
PitchandYaw.Declaration
Objective-C
+ (void)pitch:(float)pitch andYaw:(float)yaw toDirection:(nonnull SCIVector3 *)direction;Swift
class func pitch(_ pitch: Float, andYaw yaw: Float, toDirection direction: SCIVector3)Parameters
pitchThe pitch in
Degrees.yawThe yaw in
Degrees.directionThe vector where computed direction should be stored.
View on GitHub