Type Aliases

The following type aliases are available globally.

  • Represents a 2D axis-aligned bounding box with two double-precision floating-point vectors that describe the minimal and maximal coordinates of the box’s opposite corners.

    Declaration

    Swift

    public typealias AABB2D = AABB2<Vector2D>
  • Represents a 2D axis-aligned bounding box with two single-precision floating-point vectors that describe the minimal and maximal coordinates of the box’s opposite corners.

    Declaration

    Swift

    public typealias AABB2F = AABB2<Vector2F>
  • Represents a 2D axis-aligned bounding box with two integer vectors that describe the minimal and maximal coordinates of the box’s opposite corners.

    Declaration

    Swift

    public typealias AABB2i = AABB2<Vector2i>
  • Typealias for AABB<V>, where V is constrained to Vector2Type.

    Declaration

    Swift

    public typealias AABB2<V> = AABB<V> where V : Vector2Type
  • Represents a 2D circle with a double-precision floating-point center point and radius parameters.

    Declaration

    Swift

    public typealias Circle2D = Circle2<Vector2D>
  • Represents a 2D circle with a single-precision floating-point center point and radius parameters.

    Declaration

    Swift

    public typealias Circle2F = Circle2<Vector2F>
  • Typealias for NSphere<V>, where V is constrained to Vector2Type.

    Declaration

    Swift

    public typealias Circle2<V> = NSphere<V> where V : Vector2Type
  • Represents a 2D ray as a pair of double-precision floating-point vectors describing where the ray starts and crosses before being projected to infinity.

    Declaration

    Swift

    public typealias DirectionalRay2D = DirectionalRay2<Vector2D>
  • Represents a 2D line as a pair of single-precision floating-point vectors describing where the ray starts and crosses before being projected to infinity.

    Declaration

    Swift

    public typealias DirectionalRay2F = DirectionalRay2<Vector2F>
  • Typealias for DirectionalRay<V>, where V is constrained to Vector2FloatingPoint.

    Declaration

    Swift

    public typealias DirectionalRay2<V> = DirectionalRay<V> where V : Vector2FloatingPoint
  • Represents a 2D edge inset with double-precision floating-point parameters.

    Declaration

    Swift

    public typealias EdgeInsets2D = EdgeInsets2<Vector2D>
  • Represents a 2D edge inset with single-precision floating-point parameters.

    Declaration

    Swift

    public typealias EdgeInsets2F = EdgeInsets2<Vector2F>
  • Represents a 2D edge inset with integer parameters.

    Declaration

    Swift

    public typealias EdgeInsets2i = EdgeInsets2<Vector2i>
  • Represents a 2D ellipse as a double-precision floating-point center with X and Y radii.

    Declaration

    Swift

    public typealias Ellipse2D = Ellipse2<Vector2D>
  • Represents a 2D ellipse as a single-precision floating-point center with X and Y radii.

    Declaration

    Swift

    public typealias Ellipse2F = Ellipse2<Vector2F>
  • Represents a 2D ellipse as a integer center with X and Y radii.

    Declaration

    Swift

    public typealias Ellipse2i = Ellipse2<Vector2i>
  • Typealias for Ellipsoid<V>, where V is constrained to Vector2Type.

    Declaration

    Swift

    public typealias Ellipse2<V> = Ellipsoid<V> where V : Vector2Type
  • Represents a 2D hyperplane as a pair of double-precision floating-point vectors describing a point on the plane and the plane’s normal.

    In 2 dimensions, a hyperplane consists of a 1D line splitting the 2D space into two.

    Declaration

    Swift

    public typealias Hyperplane2D = Hyperplane2<Vector2D>
  • Represents a 2D hyperplane as a pair of single-precision floating-point vectors describing a point on the plane and the plane’s normal.

    In 2 dimensions, a hyperplane consists of a 1D line splitting the 2D space into two.

    Declaration

    Swift

    public typealias Hyperplane2F = Hyperplane2<Vector2F>
  • Typealias for Hyperplane<V>, where V is constrained to Vector2FloatingPoint.

    In 2 dimensions, a hyperplane consists of a 1D line splitting the 2D space into two.

    Declaration

    Swift

    public typealias Hyperplane2<V> = Hyperplane<V> where V : Vector2FloatingPoint
  • Represents a 2D line as a pair of double-precision floating-point vectors which the infinite line crosses.

    Declaration

    Swift

    public typealias Line2D = Line2<Vector2D>
  • Represents a 2D line as a pair of single-precision floating-point vectors which the infinite line crosses.

    Declaration

    Swift

    public typealias Line2F = Line2<Vector2F>
  • Represents a 2D line as a pair of integer vectors which the infinite line crosses.

    Declaration

    Swift

    public typealias Line2i = Line2<Vector2i>
  • Typealias for Line<V>, where V is constrained to Vector2Type.

    Declaration

    Swift

    public typealias Line2<V> = Line<V> where V : Vector2Type
  • Represents a 2D polygon as a series of connected double-precision floating-point 2D vertices.

    Declaration

    Swift

    public typealias LinePolygon2D = LinePolygon2<Vector2D>
  • Represents a 2D polygon as a series of connected single-precision floating-point 2D vertices.

    Declaration

    Swift

    public typealias LinePolygon2F = LinePolygon2<Vector2F>
  • Represents a 2D polygon as a series of connected integer 2D vertices.

    Declaration

    Swift

    public typealias LinePolygon2i = LinePolygon2<Vector2i>
  • Typealias for LinePolygon<V>, where V is constrained to Vector2Type.

    Declaration

    Swift

    public typealias LinePolygon2<V> = LinePolygon<V> where V : Vector2Type
  • Represents a 2D line segment as a pair of double-precision floating-point start and end vectors.

    Declaration

    Swift

    public typealias LineSegment2D = LineSegment2<Vector2D>
  • Represents a 2D line segment as a pair of single-precision floating-point start and end vectors.

    Declaration

    Swift

    public typealias LineSegment2F = LineSegment2<Vector2F>
  • Represents a 2D line segment as a pair of integer start and end vectors.

    Declaration

    Swift

    public typealias LineSegment2i = LineSegment2<Vector2i>
  • Typealias for LineSegment<V>, where V is constrained to Vector2Type.

    Declaration

    Swift

    public typealias LineSegment2<V> = LineSegment<V> where V : Vector2Type
  • Represents a 2D plane as a pair of double-precision floating-point vectors describing a point on the plane and the plane’s normal.

    Declaration

    Swift

    public typealias PointNormalPlane2D = PointNormalPlane2<Vector2D>
  • Represents a 2D plane as a pair of single-precision floating-point vectors describing a point on the plane and the plane’s normal.

    Declaration

    Swift

    public typealias PointNormalPlane2F = PointNormalPlane2<Vector2F>
  • Typealias for PointNormalPlane<V>, where V is constrained to Vector2FloatingPoint.

    Declaration

    Swift

    public typealias PointNormalPlane2<V> = PointNormalPlane<V> where V : Vector2FloatingPoint
  • Represents a 2D ray as a pair of double-precision floating-point vectors describing where the ray starts and crosses before being projected to infinity.

    Declaration

    Swift

    public typealias Ray2D = Ray2<Vector2D>
  • Represents a 2D ray as a pair of single-precision floating-point vectors describing where the ray starts and crosses before being projected to infinity.

    Declaration

    Swift

    public typealias Ray2F = Ray2<Vector2F>
  • Represents a 2D ray as a pair of integer vectors describing where the ray starts and crosses before being projected to infinity.

    Declaration

    Swift

    public typealias Ray2i = Ray2<Vector2i>
  • Typealias for Ray<V>, where V is constrained to Vector2Type.

    Declaration

    Swift

    public typealias Ray2<V> = Ray<V> where V : Vector2Type
  • Represents a double-precision floating-point 2D rectangle.

    Declaration

    Swift

    public typealias Rectangle2D = Rectangle2<Vector2D>
  • Represents a single-precision floating-point 2D rectangle.

    Declaration

    Swift

    public typealias Rectangle2F = Rectangle2<Vector2F>
  • Represents an integer 2D rectangle.

    Declaration

    Swift

    public typealias Rectangle2i = Rectangle2<Vector2i>
  • Typealias for NRectangle<V>, where V is constrained to Vector2Type.

    Declaration

    Swift

    public typealias Rectangle2<V> = NRectangle<V> where V : Vector2Type
  • Represents a 2D rounded rectangle with double-precision floating-point bounds and X and Y radius.

    Declaration

    Swift

    public typealias RoundRectangle2D = RoundRectangle2<Vector2D>
  • Represents a 2D rounded rectangle with single-precision floating-point bounds and X and Y radius.

    Declaration

    Swift

    public typealias RoundRectangle2F = RoundRectangle2<Vector2F>
  • Represents a 2D rounded rectangle with integer bounds and X and Y radius.

    Declaration

    Swift

    public typealias RoundRectangle2i = RoundRectangle2<Vector2i>
  • Represents a 2D rounded rectangle with rectangular bounds and X and Y radius.

    Declaration

    Swift

    public typealias RoundRectangle2<Vector> = RoundNRectangle<Vector> where Vector : Vector2Type
  • Represents a double-precision floating-point 2D square.

    Declaration

    Swift

    public typealias Square2D = Square2<Vector2D>
  • Represents a single-precision floating-point 2D square.

    Declaration

    Swift

    public typealias Square2F = Square2<Vector2F>
  • Represents an integer 2D square.

    Declaration

    Swift

    public typealias Square2i = Square2<Vector2i>
  • Typealias for NSquare<V>, where V is constrained to Vector2Type.

    Declaration

    Swift

    public typealias Square2<V> = NSquare<V> where V : Vector2Type
  • Represents a regular 2-dimensional Stadium as a pair of end points and a radius with double-precision floating-point numbers.

    Declaration

    Swift

    public typealias Stadium2D = Stadium2<Vector2D>
  • Represents a regular 2-dimensional Stadium as a pair of end points and a radius with stadium-precision floating-point numbers.

    Declaration

    Swift

    public typealias Stadium2F = Stadium2<Vector2F>
  • Represents a regular 2-dimensional Stadium as a pair of end points and a radius with integers.

    Declaration

    Swift

    public typealias Stadium2i = Stadium2<Vector2i>
  • Represents a regular 2-dimensional Stadium as a pair of end points and a radius.

    Typealias for NCapsule<V>, where V is constrained to Vector2Type.

    Declaration

    Swift

    public typealias Stadium2<V> = NCapsule<V> where V : Vector2Type
  • Represents a 2D triangle as a trio of N-dimensional vectors with double-precision floating-point components.

    Declaration

    Swift

    public typealias Triangle2D = Triangle2<Vector2D>
  • Represents a 2D triangle as a trio of N-dimensional vectors with single-precision floating-point components.

    Declaration

    Swift

    public typealias Triangle2F = Triangle2<Vector2F>
  • Represents a 2D triangle as a trio of N-dimensional vectors with integer components.

    Declaration

    Swift

    public typealias Triangle2i = Triangle2<Vector2i>
  • Typealias for Triangle<V>, where V is constrained to Vector2Type.

    Declaration

    Swift

    public typealias Triangle2<V> = Triangle<V> where V : Vector2Type
  • Represents a 2D point with two double-precision floating-point components

    Declaration

    Swift

    public typealias Vector2D = Vector2<Double>
  • Represents a 2D point with two single-precision floating-point components

    Declaration

    Swift

    public typealias Vector2F = Vector2<Float>
  • Represents a 2D point with two Int components

    Declaration

    Swift

    public typealias Vector2i = Vector2<Int>
  • Represents a 3D axis-aligned bounding box with two double-precision floating-point vectors that describe the minimal and maximal coordinates of the box’s opposite corners.

    Declaration

    Swift

    public typealias AABB3D = AABB3<Vector3D>
  • Represents a 3D axis-aligned bounding box with two single-precision floating-point vectors that describe the minimal and maximal coordinates of the box’s opposite corners.

    Declaration

    Swift

    public typealias AABB3F = AABB3<Vector3F>
  • Represents a 3D axis-aligned bounding box with two integer vectors that describe the minimal and maximal coordinates of the box’s opposite corners.

    Declaration

    Swift

    public typealias AABB3i = AABB3<Vector3i>
  • Typealias for AABB<V>, where V is constrained to Vector3Type.

    Declaration

    Swift

    public typealias AABB3<V> = AABB<V> where V : Vector3Type
  • Represents a regular 3-dimensional Capsule as a pair of end points and a radius with double-precision floating-point numbers.

    Declaration

    Swift

    public typealias Capsule3D = Capsule3<Vector3D>
  • Represents a regular 3-dimensional Capsule as a pair of end points and a radius with single-precision floating-point numbers.

    Declaration

    Swift

    public typealias Capsule3F = Capsule3<Vector3F>
  • Represents a regular 3-dimensional Capsule as a pair of end points and a radius with integers.

    Declaration

    Swift

    public typealias Capsule3i = Capsule3<Vector3i>
  • Typealias for NCapsule<V>, where V is constrained to Vector3Type.

    Declaration

    Swift

    public typealias Capsule3<V> = NCapsule<V> where V : Vector3Type
  • Represents a double-precision floating-point 3D cube.

    Declaration

    Swift

    public typealias Cube3D = NSquare<Vector3D>
  • Represents a single-precision floating-point 3D cube.

    Declaration

    Swift

    public typealias Cube3F = NSquare<Vector3F>
  • Represents an integer 3D cube.

    Declaration

    Swift

    public typealias Cube3i = NSquare<Vector3i>
  • Typealias for NSquare<V>, where V is constrained to Vector3Type.

    Declaration

    Swift

    public typealias Cube3<V> = NSquare<V> where V : Vector3Type
  • Represents a regular 3-dimensional Cylinder as a pair of end points and a radius with double-precision floating-point numbers.

    Declaration

    Swift

    public typealias Cylinder3D = Cylinder3<Vector3D>
  • Represents a regular 3-dimensional Cylinder as a pair of end points and a radius with double-precision floating-point numbers.

    Declaration

    Swift

    public typealias Cylinder3F = Cylinder3<Vector3F>
  • Represents a regular 3-dimensional Cylinder as a pair of end points and a radius with integers.

    Declaration

    Swift

    public typealias Cylinder3i = Cylinder3<Vector3i>
  • Represents a 3D ray as a pair of double-precision floating-point vectors describing where the ray starts and crosses before being projected to infinity.

    Declaration

    Swift

    public typealias DirectionalRay3D = DirectionalRay3<Vector3D>
  • Represents a 3D line as a pair of single-precision floating-point vectors describing where the ray starts and crosses before being projected to infinity.

    Declaration

    Swift

    public typealias DirectionalRay3F = DirectionalRay3<Vector3F>
  • Typealias for DirectionalRay3<V>, where V is constrained to Vector3FloatingPoint.

    Declaration

    Swift

    public typealias DirectionalRay3<V> = DirectionalRay<V> where V : Vector3FloatingPoint
  • Represents a 3D ellipse as a double-precision floating-point center with X, Y, and Z radii.

    Declaration

    Swift

    public typealias Ellipse3D = Ellipse3<Vector3D>
  • Represents a 3D ellipse as a single-precision floating-point center with X, Y, and Z radii.

    Declaration

    Swift

    public typealias Ellipse3F = Ellipse3<Vector3F>
  • Represents a 3D ellipse as a integer center with X, Y, and Z radii.

    Declaration

    Swift

    public typealias Ellipse3i = Ellipse3<Vector3i>
  • Typealias for Ellipsoid<V>, where V is constrained to Vector3Type.

    Declaration

    Swift

    public typealias Ellipse3<V> = Ellipsoid<V> where V : Vector3Type
  • Represents a 3D hyperplane as a pair of double-precision floating-point vectors describing a point on the plane and the plane’s normal.

    In 3 dimensions, a hyperplane consists of a 2D surface splitting the 3D space into two.

    Declaration

    Swift

    public typealias Hyperplane3D = Hyperplane3<Vector3D>
  • Represents a 3D hyperplane as a pair of single-precision floating-point vectors describing a point on the plane and the plane’s normal.

    In 3 dimensions, a hyperplane consists of a 2D surface splitting the 3D space into two.

    Declaration

    Swift

    public typealias Hyperplane3F = Hyperplane3<Vector3F>
  • Typealias for Hyperplane<V>, where V is constrained to Vector3FloatingPoint.

    In 3 dimensions, a hyperplane consists of a 2D surface splitting the 3D space into two.

    Declaration

    Swift

    public typealias Hyperplane3<V> = Hyperplane<V> where V : Vector3FloatingPoint
  • Represents a 3D line as a pair of double-precision floating-point vectors which the infinite line crosses.

    Declaration

    Swift

    public typealias Line3D = Line3<Vector3D>
  • Represents a 3D line as a pair of single-precision floating-point vectors which the infinite line crosses.

    Declaration

    Swift

    public typealias Line3F = Line3<Vector3F>
  • Represents a 3D line as a pair of integer vectors which the infinite line crosses.

    Declaration

    Swift

    public typealias Line3i = Line3<Vector3i>
  • Typealias for Line<V>, where V is constrained to Vector3Type.

    Declaration

    Swift

    public typealias Line3<V> = Line<V> where V : Vector3Type
  • Represents a 3D line as a pair of double-precision floating-point start and end vectors.

    Declaration

    Swift

    public typealias LineSegment3D = LineSegment3<Vector3D>
  • Represents a 3D line as a pair of single-precision floating-point start and end vectors.

    Declaration

    Swift

    public typealias LineSegment3F = LineSegment3<Vector3F>
  • Represents a 3D line as a pair of integer start and end vectors.

    Declaration

    Swift

    public typealias LineSegment3i = LineSegment3<Vector3i>
  • Typealias for LineSegment<V>, where V is constrained to Vector3Type.

    Declaration

    Swift

    public typealias LineSegment3<V> = LineSegment<V> where V : Vector3Type
  • Represents a 3D plane as a pair of double-precision floating-point vectors describing a point on the plane and the plane’s normal.

    Declaration

    Swift

    public typealias PointNormalPlane3D = PointNormalPlane3<Vector3D>
  • Represents a 3D plane as a pair of single-precision floating-point vectors describing a point on the plane and the plane’s normal.

    Declaration

    Swift

    public typealias PointNormalPlane3F = PointNormalPlane3<Vector3F>
  • Typealias for PointNormalPlane<V>, where V is constrained to Vector3FloatingPoint.

    Declaration

    Swift

    public typealias PointNormalPlane3<V> = PointNormalPlane<V> where V : Vector3FloatingPoint
  • Represents a 3D projective plane as a point, normal, right, and up-axis vectors in 3D space with double-precision floating-point scalars.

    Declaration

    Swift

    public typealias ProjectivePointNormalPlane3D = ProjectivePointNormalPlane3<Vector3D>
  • Represents a 3D projective plane as a point, normal, right, and up-axis vectors in 3D space with single-precision floating-point scalars.

    Declaration

    Swift

    public typealias ProjectivePointNormalPlane3F = ProjectivePointNormalPlane3<Vector3F>
  • Represents a 3D ray as a pair of double-precision floating-point vectors describing where the ray starts and crosses before being projected to infinity.

    Declaration

    Swift

    public typealias Ray3D = Ray3<Vector3D>
  • Represents a 3D line as a pair of single-precision floating-point vectors describing where the ray starts and crosses before being projected to infinity.

    Declaration

    Swift

    public typealias Ray3F = Ray3<Vector3F>
  • Represents a 3D line as a pair of integer vectors describing where the ray starts and crosses before being projected to infinity.

    Declaration

    Swift

    public typealias Ray3i = Ray3<Vector3i>
  • Typealias for Ray<V>, where V is constrained to Vector3Type.

    Declaration

    Swift

    public typealias Ray3<V> = Ray<V> where V : Vector3Type
  • Describes a 3-dimensional rotation matrix with double-precision floating-point components.

    Declaration

    Swift

    public typealias RotationMatrix3D = RotationMatrix3<Double>
  • Describes a 3-dimensional rotation matrix with single-precision floating-point components.

    Declaration

    Swift

    public typealias RotationMatrix3F = RotationMatrix3<Float>
  • Describes a 3-dimensional rotation matrix.

    Declaration

    Swift

    public typealias RotationMatrix3<Scalar> = Matrix3x3<Scalar> where Scalar : DivisibleArithmetic, Scalar : Real
  • Represents a 3D sphere with a double-precision floating-point center point and radius parameters.

    Declaration

    Swift

    public typealias Sphere3D = Sphere3<Vector3D>
  • Represents a 3D sphere with a single-precision floating-point center point and radius parameters.

    Declaration

    Swift

    public typealias Sphere3F = Sphere3<Vector3F>
  • Typealias for NSphere<V>, where V is constrained to Vector3Type.

    Declaration

    Swift

    public typealias Sphere3<V> = NSphere<V> where V : Vector3Type
  • Represents a three dimensional [torus] shape as a center point, an axis of rotation around that center point, and two radii describing the radius of a circle, and the radius of the axis of rotation of the circle around the center point of the torus with double-precision floating-point numbers.

    Declaration

    Swift

    public typealias Torus3D = Torus3<Vector3D>
  • Represents a three dimensional [torus] shape as a center point, an axis of rotation around that center point, and two radii describing the radius of a circle, and the radius of the axis of rotation of the circle around the center point of the torus with single-precision floating-point numbers.

    Declaration

    Swift

    public typealias Torus3F = Torus3<Vector3F>
  • Represents a 3D triangle as a trio of N-dimensional vectors with double-precision floating-point components.

    Declaration

    Swift

    public typealias Triangle3D = Triangle3<Vector3D>
  • Represents a 3D triangle as a trio of N-dimensional vectors with single-precision floating-point components.

    Declaration

    Swift

    public typealias Triangle3F = Triangle3<Vector3F>
  • Represents a 3D triangle as a trio of N-dimensional vectors with integer components.

    Declaration

    Swift

    public typealias Triangle3i = Triangle3<Vector3i>
  • Typealias for Triangle<V>, where V is constrained to Vector3Type.

    Declaration

    Swift

    public typealias Triangle3<V> = Triangle<V> where V : Vector3Type
  • Represents a 3D point with three double-precision floating-point components

    Declaration

    Swift

    public typealias Vector3D = Vector3<Double>
  • Represents a 3D point with three single-precision floating-point components

    Declaration

    Swift

    public typealias Vector3F = Vector3<Float>
  • Represents a 3D point with three Int components

    Declaration

    Swift

    public typealias Vector3i = Vector3<Int>
  • Represents a 4D hyperplane as a pair of double-precision floating-point vectors describing a point on the plane and the plane’s normal.

    In 4 dimensions, a hyperplane consists of a 3D surface splitting the 4D space into two.

    Declaration

    Swift

    public typealias Hyperplane4D = Hyperplane4<Vector4D>
  • Represents a 4D hyperplane as a pair of single-precision floating-point vectors describing a point on the plane and the plane’s normal.

    In 4 dimensions, a hyperplane consists of a 3D surface splitting the 4D space into two.

    Declaration

    Swift

    public typealias Hyperplane4F = Hyperplane4<Vector4F>
  • Typealias for Hyperplane<V>, where V is constrained to Vector4FloatingPoint.

    In 4 dimensions, a hyperplane consists of a 3D surface splitting the 4D space into two.

    Declaration

    Swift

    public typealias Hyperplane4<V> = Hyperplane<V> where V : Vector4FloatingPoint
  • Represents a 4D point with three double-precision floating-point components

    Declaration

    Swift

    public typealias Vector4D = Vector4<Double>
  • Represents a 4D point with three single-precision floating-point components

    Declaration

    Swift

    public typealias Vector4F = Vector4<Float>
  • Represents a 4D point with three Int components

    Declaration

    Swift

    public typealias Vector4i = Vector4<Int>
  • Plain 3-row 2-column Matrix for 2D affine transformations with double-precision floating-point components.

    Declaration

    Swift

    public typealias Matrix3x2D = Matrix3x2<Double>