Angle

public class Angle
extension Angle: NativeBase
extension Angle: Hashable

Represents an angle independent of the unit of measurement.

  • The value of this angle in degrees.

    Declaration

    Swift

    public var degrees: Double { get }
  • The value of this angle in radians.

    Declaration

    Swift

    public var radians: Double { get }
  • Creates a new angle object based on the supplied angle value in degrees.

    Declaration

    Swift

    public static func fromDegrees(angle: Double) -> Angle

    Parameters

    angle

    Angle value in degrees.

    Return Value

    The angle as specified by input in degrees.

  • Creates a new angle object based on the supplied angle value in radians.

    Declaration

    Swift

    public static func fromRadians(angle: Double) -> Angle

    Parameters

    angle

    Angle value in radians.

    Return Value

    The angle as specified by input in radians.