SITAngle

Objective-C

@interface SITAngle : NSObject

Swift

class SITAngle : NSObject

Representation of an angle.

Initializers

  • Declaration

    Objective-C

    - (instancetype)initWithRadians:(float)radians;

    Swift

    init!(radians: Float)

    Parameters

    radians

    angle in radians, increasing in counter-clockwise

  • Declaration

    Objective-C

    - (instancetype)initWithDegrees:(float)degrees;

    Swift

    init!(degrees: Float)

    Parameters

    degrees

    angle in degrees, increasing in counter-clockwise

Methods

  • Declaration

    Objective-C

    - (float)degrees;

    Swift

    func degrees() -> Float

    Return Value

    angle in degrees, increasing in counter-clockwise

  • Declaration

    Objective-C

    - (float)radians;

    Swift

    func radians() -> Float

    Return Value

    angle in radians, increasing in counter-clockwise

  • Declaration

    Objective-C

    - (float)degressClockwise;

    Swift

    func degressClockwise() -> Float

    Return Value

    angle in radians, increasing in clockwise

  • Declaration

    Objective-C

    - (float)radiansMinusPiPi;

    Swift

    func radiansMinusPiPi() -> Float

    Return Value

    angle in radians in range (-pi,pi)