RoundNRectangle

public struct RoundNRectangle<Vector> : GeometricType where Vector : VectorType
extension RoundNRectangle: Equatable where Vector: Equatable, Scalar: Equatable
extension RoundNRectangle: Hashable where Vector: Hashable, Scalar: Hashable
extension RoundNRectangle: Encodable where Vector: Encodable, Scalar: Encodable
extension RoundNRectangle: Decodable where Vector: Decodable, Scalar: Decodable
extension RoundNRectangle: BoundableType where Vector: VectorAdditive

Represents an N-dimensional rounded rectangle with a rectangle and radius for each axis.

  • Convenience for Vector.Scalar

    Declaration

    Swift

    public typealias Scalar = Vector.Scalar
  • Undocumented

    Declaration

    Swift

    public var rectangle: NRectangle<Vector>
  • Undocumented

    Declaration

    Swift

    public var radius: Vector
  • Undocumented

    Declaration

    Swift

    public init(rectangle: NRectangle<Vector>, radius: Vector)

Available where Vector: VectorAdditive

  • Returns the minimal AABB capable of containing this round rectangle’s bounds.

    Declaration

    Swift

    public var bounds: AABB<Vector> { get }