Ray2
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
-
Initializes a new Ray with two 2D vectors representing the starting point of the ray and a secondary point the ray crosses before projecting towards infinity.
Declaration
Swift
init(x1: Scalar, y1: Scalar, x2: Scalar, y2: Scalar)
-
Initializes a new Ray with a 2D vector for its position and another describing the direction of the ray relative to the position.
Declaration
Swift
init(x: Scalar, y: Scalar, dx: Scalar, dy: Scalar)