SITAngle
Objective-C
@interface SITAngle : NSObject <SITMapperProtocol>
Swift
class SITAngle : NSObject, SITMapperProtocol
Representation of an angle.
-
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
-
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)degreesClockwise;
Swift
func degreesClockwise() -> Float
Return Value
angle in degrees, increasing in clockwise
-
Deprecated
Use degreesClockwise instead.
Declaration
Objective-C
- (float)degressClockwise;
Swift
func degressClockwise() -> Float
Return Value
angle in degrees, increasing in clockwise
-
Declaration
Objective-C
- (float)radiansMinusPiPi;
Swift
func radiansMinusPiPi() -> Float
Return Value
angle in radians in range (-pi,pi)