NRectangle
public struct NRectangle<Vector> : ConstructableRectangleType where Vector : VectorTypeextension NRectangle: Equatable where Vector: Equatable, Scalar: Equatableextension NRectangle: Hashable where Vector: Hashable, Scalar: Hashableextension NRectangle: Encodable where Vector: Encodable, Scalar: Encodableextension NRectangle: Decodable where Vector: Decodable, Scalar: Decodableextension NRectangle: AdditiveRectangleType where Vector: VectorAdditiveextension NRectangle: BoundableType where Vector: VectorAdditiveextension NRectangle: VolumetricType where Vector: VectorAdditive & VectorComparableextension NRectangle: SelfIntersectableRectangleType where Vector: VectorAdditive & VectorComparableextension NRectangle: DivisibleRectangleType where Vector: VectorDivisible & VectorComparableextension NRectangle: ConvexType where Vector: VectorFloatingPointextension NRectangle: SignedDistanceMeasurableType where Vector: VectorFloatingPointRepresents an N-dimensional rectangle with a vector describing its origin and a size vector that describes the span of the rectangle.
- 
                  
                  Convenience for Vector.ScalarDeclarationSwift public typealias Scalar = Vector.Scalar
- 
                  
                  The starting location of this rectangle with the minimal coordinates contained within the rectangle. DeclarationSwift public var location: Vector
- 
                  
                  The size of this rectangle, which when added to locationproduce the maximal coordinates contained within this rectangle.Must be >= Vector.zeroDeclarationSwift public var size: Vector
- 
                  
                  Initializes a NRectangle with the location + size of a rectangle. DeclarationSwift public init(location: Vector, size: Vector)
- 
                  
                  Returns a RoundNRectanglewhich has the same bounds as this rectangle, with the given radius vector describing the dimensions of the corner arcs.DeclarationSwift @inlinable public func rounded(radius: Vector) -> RoundNRectangle<Vector>
- 
                  
                  Returns a RoundNRectanglewhich has the same bounds as this rectangle, with the given radius value describing the dimensions of the corner arcs.Alias for rounded(radius: Vector(repeating: radius))DeclarationSwift public func rounded(radius: Scalar) -> RoundNRectangle<Vector>
- 
                  
                  Returns an empty rectangle DeclarationSwift public static var zero: NRectangle { get }
- 
                  
                  Returns trueif the size of this rectangle is zero.DeclarationSwift public var isSizeZero: Bool { get }
- 
                  
                  Minimum point for this rectangle. When set, the maximal point on the opposite corner is kept fixed. DeclarationSwift public var minimum: Vector { get set }
- 
                  
                  Maximum point for this rectangle. When set, the minimal point on the opposite corner is kept fixed. DeclarationSwift public var maximum: Vector { get set }
- 
                  
                  Initializes an empty NRectangle instance. DeclarationSwift public init()
- 
                  
                  Initializes a NRectangleinstance out of the given minimum and maximum coordinates.Precondition minimum <= maximumDeclarationSwift public init(minimum: Vector, maximum: Vector)
- 
                  
                  Returns trueifsize >= .zero.DeclarationSwift public var isValid: Bool { get }
- 
                  
                  Initializes a NRectangle containing the minimum area capable of containing all supplied points. If no points are supplied, an empty NRectangle is created instead. DeclarationSwift public init(of points: Vector...)
- 
                  
                  Initializes a NRectangle out of a set of points, expanding to the smallest bounding box capable of fitting each point. DeclarationSwift @inlinable public init<C>(points: C) where Vector == C.Element, C : Collection
- 
                  
                  Expands the bounding box of this NRectangle to include the given point. DeclarationSwift public mutating func expand(toInclude point: Vector)
- 
                  
                  Expands the bounding box of this NRectangle to include the given set of points. Same as calling expand(toInclude:)over each point. If the array is empty, nothing is done.DeclarationSwift @inlinable public mutating func expand<S: Sequence>( toInclude points: S ) where S.Element == Vector
- 
                  
                  Returns whether a given point is contained within this bounding box. Points at the perimeter of the N-rectangle (distance to nearest edge == 0) are considered as contained within the N-rectangle. DeclarationSwift public func contains(_ point: Vector) -> Bool
- 
                  
                  Returns whether a given NRectangle rests completely inside the boundaries of this NRectangle. DeclarationSwift public func contains(_ other: `Self`) -> Bool
- 
                  
                  Returns whether this NRectangle intersects the given NRectangle instance. This check is inclusive, so the edges of the bounding box are considered to intersect the other bounding box’s edges as well. DeclarationSwift public func intersects(_ other: `Self`) -> Bool
- 
                  
                  Returns a NRectangle which is the minimum NRectangle that can fit this NRectangle with another given NRectangle. DeclarationSwift public func union(_ other: `Self`) -> NRectangle<Vector>
- 
                  
                  Creates a rectangle which is equal to the positive area shared between this rectangle and other.If the rectangles do not intersect (i.e. produce a rectangle with < 0 bounds), nilis returned, instead.DeclarationSwift @inlinable public func intersection(_ other: `Self`) -> `Self`?
- 
                  
                  Returns a NRectangle which is the minimum NRectangle that can fit two given Rectangles. DeclarationSwift public static func union(_ left: `Self`, _ right: `Self`) -> NRectangle<Vector>
- 
                  
                  Returns an NRectanglewith location.zeroand size.one.DeclarationSwift static var unit: `Self` { get }
- 
                  
                  Returns a NRectangle with the same position as this NRectangle, with its size multiplied by the coordinates of the given vector. DeclarationSwift @inlinable func scaledBy(vector: Vector) -> NRectangle<Vector>
- 
                  
                  Subdivides this rectangle into 2 ^ D(whereDis the dimensional size ofSelf.Vector) rectangles that occupy the same area as this rectangle but subdivide it into equally-sized rectangles.The ordering of the subdivisions is not defined. DeclarationSwift @inlinable public func subdivided() -> [`Self`]
- 
                  
                  Returns trueif this NRectangle’s area intersects the given line type.DeclarationSwift public func intersects<Line>( line: Line ) -> Bool where Line : LineFloatingPoint, Vector == Line.Vector
- 
                  
                  DeclarationSwift public func intersection<Line>( with line: Line ) -> ConvexLineIntersection<Vector> where Line: LineFloatingPoint, Vector == Line.Vector
- 
                  
                  DeclarationSwift public func signedDistance(to point: Vector) -> Vector.Scalar
