clone

fun clone(ray: Ray, result: Ray? = definedExternally): Ray(source)

Duplicates a Ray instance.

Return

The modified result parameter or a new Ray instance if one was not provided. (Returns undefined if ray is undefined)

Parameters

ray

The ray to duplicate.

result

The object onto which to store the result.

See also