NSRect

typealias NSRect = CGRect
  • Returns the center point of the rectangle.

    Declaration

    Swift

    public var center: NSPoint { get }
  • Returns a circumscribing ellipse.

    Declaration

    Swift

    public func circumscribingEllipse(eccentricity: Bool) -> NSRect

    Parameters

    eccentricity

    Whether the circumscribing ellipse allows eccentricity. When false, the returning circumscribing ellipse will be perfectly circular; otherwise, elliptical.

    Return Value

    Returns a circumscribing ellipse.