Extensions
The following extensions are available globally.
-
Declaration
Swift
extension AABB2: CustomStringConvertible
public extension AABB2 where Vector: VectorComparable
public extension AABB2 where Vector: VectorAdditive
extension AABB2: Convex2Type where Vector: Vector2FloatingPoint
-
Declaration
Swift
public extension Circle2
public extension Circle2 where Vector: VectorMultiplicative, Scalar: Comparable
extension Circle2: Convex2Type where Vector: Vector2FloatingPoint
public extension Circle2 where Vector: Vector2Real
-
Declaration
Swift
extension DirectionalRay2: Line2Type
extension DirectionalRay2: Line2Multiplicative where Vector: Vector2Multiplicative
extension DirectionalRay2: Line2Signed where Vector: Vector2Signed
extension DirectionalRay2: Line2FloatingPoint where Vector: Vector2FloatingPoint
extension DirectionalRay2: Line2Real where Vector: Vector2Real
-
Declaration
Swift
public extension Ellipse2
public extension Ellipse2 where Vector: VectorReal
public extension Ellipse2 where Vector: VectorFloatingPoint
extension Ellipse2: Convex2Type where Vector: Vector2Real
-
Declaration
-
Declaration
Swift
extension Line2: Line2Type
extension Line2: Line2Multiplicative where Vector: Vector2Multiplicative
extension Line2: Line2Signed where Vector: Vector2Signed
extension Line2: Line2FloatingPoint where Vector: Vector2FloatingPoint
extension Line2: Line2Real where Vector: Vector2Real
-
Declaration
Swift
public extension LinePolygon2
extension LinePolygon2 where Vector: Vector2Multiplicative
extension LinePolygon2 where Vector: Vector2Multiplicative, Vector.Scalar: DivisibleArithmetic
extension LinePolygon2 where Vector: Vector2Multiplicative & VectorComparable
extension LinePolygon2: VolumetricType where Vector: VectorDivisible & VectorComparable
extension LinePolygon2 where Vector: VectorFloatingPoint
extension LinePolygon2 where Vector: Vector2FloatingPoint
-
Declaration
Swift
extension LineSegment2: Line2Type
extension LineSegment2: Line2Multiplicative where Vector: Vector2Multiplicative
extension LineSegment2: Line2Signed where Vector: Vector2Signed
extension LineSegment2: Line2FloatingPoint where Vector: Vector2FloatingPoint
extension LineSegment2: Line2Real where Vector: Vector2Real
-
Declaration
Swift
extension PointNormalPlane2: PlaneIntersectablePlane2Type
-
Declaration
Swift
extension Ray2: Line2Type
extension Ray2: Line2Multiplicative where Vector: Vector2Multiplicative
extension Ray2: Line2Signed where Vector: Vector2Signed
extension Ray2: Line2FloatingPoint where Vector: Vector2FloatingPoint
extension Ray2: Line2Real where Vector: Vector2Real
public extension Ray2 where Vector: VectorAdditive
-
Declaration
Swift
extension Rectangle2: CustomStringConvertible
public extension Rectangle2 where Vector: VectorAdditive
public extension Rectangle2 where Vector: VectorReal
public extension Rectangle2 where Vector: VectorAdditive & VectorComparable
public extension Rectangle2 where Vector: VectorMultiplicative
public extension Rectangle2 where Scalar: FloatingPoint
extension Rectangle2: Convex2Type where Vector: Vector2FloatingPoint
-
Declaration
Swift
extension RoundRectangle2
-
Declaration
-
Declaration
Swift
public extension Triangle2 where Vector: Vector2Multiplicative
public extension Triangle2 where Vector: Vector2Multiplicative & VectorDivisible
public extension Triangle2 where Vector: Vector2Multiplicative & VectorDivisible & VectorSigned
extension Triangle2: VolumetricType where Vector: Vector2FloatingPoint
extension Triangle2: Convex2Type where Vector: Vector2FloatingPoint
-
Declaration
Swift
extension AABB3: Convex3Type where Vector: Vector3FloatingPoint
-
Declaration
Swift
public extension Capsule3
extension Capsule3: SignedDistanceMeasurableType where Vector: VectorFloatingPoint
-
Declaration
-
Declaration
Swift
extension DirectionalRay3: Line3Type where Vector.SubVector2: Vector2FloatingPoint
extension DirectionalRay3: Line3FloatingPoint where Vector: Vector3Type & VectorFloatingPoint, Vector.SubVector2: Vector2FloatingPoint
-
Declaration
Swift
public extension Ellipse3
public extension Ellipse3 where Vector: VectorReal
extension Ellipse3: ProjectiveSpace where Vector: Vector3Real
extension Ellipse3: SphereProjectiveSpace where Vector: Vector3Real
extension Ellipse3: Convex3Type where Vector: Vector3Real
-
Declaration
-
Declaration
Swift
extension Line3: Line3Type
extension Line3: Line3FloatingPoint where Vector: Vector3Type & VectorFloatingPoint, Vector.SubVector2: Vector2FloatingPoint
-
Declaration
Swift
extension LineSegment3: Line3Type
extension LineSegment3: Line3FloatingPoint where Vector: Vector3Type & VectorFloatingPoint, Vector.SubVector2: Vector2FloatingPoint
-
Declaration
Swift
extension PointNormalPlane3: PlaneIntersectablePlane3Type
-
Declaration
Swift
extension Ray3: Line3Type where Vector: VectorAdditive
extension Ray3: Line3FloatingPoint where Vector: Vector3Type & VectorFloatingPoint, Vector.SubVector2: Vector2FloatingPoint
-
Declaration
Swift
public extension RotationMatrix3
-
Declaration
Swift
extension Sphere3: Convex3Type where Vector: Vector3FloatingPoint
extension Sphere3: ProjectiveSpace where Vector: Vector3Real
extension Sphere3: SphereProjectiveSpace where Vector: Vector3Real
-
Declaration
Swift
public extension Triangle3 where Vector: Vector3Multiplicative
extension Triangle3: PlaneType where Vector: Vector3FloatingPoint
extension Triangle3: LineIntersectablePlaneType where Vector: Vector3FloatingPoint
extension Triangle3: SignedDistanceMeasurableType where Vector: Vector3FloatingPoint
-
Declaration
Swift
extension Int: DivisibleArithmetic
-
Declaration
Swift
extension UInt: DivisibleArithmetic
-
Declaration
Swift
extension Int8: DivisibleArithmetic
-
Declaration
Swift
extension Int16: DivisibleArithmetic
-
Declaration
Swift
extension Int32: DivisibleArithmetic
-
Declaration
Swift
extension Int64: DivisibleArithmetic
-
Declaration
Swift
extension UInt8: DivisibleArithmetic
-
Declaration
Swift
extension UInt16: DivisibleArithmetic
-
Declaration
Swift
extension UInt32: DivisibleArithmetic
-
Declaration
Swift
extension UInt64: DivisibleArithmetic
-
Declaration
Swift
extension Float: DivisibleArithmetic
-
Declaration
Swift
extension Double: DivisibleArithmetic
-
Declaration
Swift
extension Float80: DivisibleArithmetic
-
Declaration
Swift
public extension Collection