Ray3
extension Ray3: Line3Type where Vector: VectorAdditive
extension Ray3: Line3FloatingPoint where Vector: Vector3Type & VectorFloatingPoint, Vector.SubVector2: Vector2FloatingPoint
-
Declaration
Swift
public typealias SubLine2 = Ray2<Vector.SubVector2>
-
Initializes a new Ray with two 3D vectors representing the starting point of the ray and a secondary point the ray crosses before projecting towards infinity.
Declaration
Swift
public init(x1: Scalar, y1: Scalar, z1: Scalar, x2: Scalar, y2: Scalar, z2: Scalar)
-
Initializes a new Ray with a 3D vector for its position and another describing the direction of the ray relative to the position.
Declaration
Swift
public init(x: Scalar, y: Scalar, z: Scalar, dx: Scalar, dy: Scalar, dz: Scalar)
-
Creates a 2D line of the same underlying type as this line.
Declaration
Swift
public static func make2DLine( _ a: Vector.SubVector2, _ b: Vector.SubVector2 ) -> SubLine2