copy

abstract fun copy(origin: Vector2F = this.origin, direction: Vector2F = this.direction): Ray

Returns a copy of this instance with specified properties changed.

Parameters

direction

the value is expected to be normalized.