iOS Charting Documentation - SciChart iOS Charts SDK v3.x

SCIMath3D

@interface SCIMath3D : NSObject

Helper class to expose certain 3-D math functions.

  • Computation of Pitch and Yaw angles from forward vector.

    Note

    x - pitch value; y - yaw value.

    Declaration

    Objective-C

    + (CGPoint)calculatePitchAndYawFromDirection:(SCIVector3 *)direction;

    Swift

    class func calculatePitchAndYaw(fromDirection direction: SCIVector3!) -> CGPoint

    Parameters

    direction

    The forward vector.

    Return Value

    The CGPoint which stores calculated pitch and yaw.

  • Computation of normalized direction vector from Pitch and Yaw.

    Declaration

    Objective-C

    + (void)pitch:(float)pitch
             andYaw:(float)yaw
        toDirection:(SCIVector3 *)direction;

    Swift

    class func pitch(_ pitch: Float, andYaw yaw: Float, toDirection direction: SCIVector3!)

    Parameters

    pitch

    The pitch in Degrees.

    yaw

    The yaw in Degrees.

    direction

    The vector where computed direction should be stored.