Constants

public struct Constants

Contains various global constants, also provides measure unit independent constants.

  • The identity matrix.

    Declaration

    Swift

    public static var identityMatrix: Matrix
  • The minimum value.

    Declaration

    Swift

    public static var minValue: Double
  • The maximum value.

    Declaration

    Swift

    public static var maxValue: Double
  • Converts the apecified MeasureUnit to millimeter.

    Declaration

    Swift

    public static func getMillimeter(_ currUnit: MeasureUnit) -> Double

    Parameters

    currUnit

    The MeasureUnit to convert.

    Return Value

    The current measure unit converted to millimeters.

  • Gets the size of an anchor point mark according to the specified MeasureUnit.

    Declaration

    Swift

    public static func getMarkSize(_ currUnit: MeasureUnit) -> Double

    Parameters

    currUnit

    The MeasureUnit to consider when calculating the size.

    Return Value

    The size of an anchor point mark.

  • Gets the minimum size of the item according to the specified MeasureUnit.

    Declaration

    Swift

    public static func getMinItemSize(_ currUnit: MeasureUnit) -> Double

    Parameters

    currUnit

    The MeasureUnit to consider when calculating the size.

    Return Value

    The minimum size of the item.

  • Gets the initial distance between adjacent control points of a reflexive link along the X-axis.

    Declaration

    Swift

    public static func getReflWth2(_ currUnit: MeasureUnit) -> Double

    Parameters

    currUnit

    The MeasureUnit to consider when calculating the distance.

    Return Value

    The distance.

  • Gets the initial distance between adjacent control points of a reflexive arrow along the Y-axis.

    Declaration

    Swift

    public static func getReflHth(_ currUnit: MeasureUnit) -> Double

    Parameters

    currUnit

    The MeasureUnit to consider when calculating the distance.

    Return Value

    The distance.

  • Returns half of an inch according to the current MeasureUnit.

    Declaration

    Swift

    public static func getHalfInch(_ currUnit: MeasureUnit) -> Double

    Parameters

    currUnit

    The MeasureUnit to consider when calculating the value.

    Return Value

    The value of half an inch.

  • Returns the minimum size af an arrow head according to the current MeasureUnit.

    Declaration

    Swift

    public static func getMinArrowheadSize(_ currUnit: MeasureUnit) -> Double

    Parameters

    currUnit

    The MeasureUnit to consider when calculating the distance.

    Return Value

    The minimum arrowhead size.