Members
direction : Cartesian3
光線的方向。
origin : Cartesian3
射線的起源。
-
Default Value:
Cartesian3.ZERO
Methods
(static) clone(ray, result) → {Ray}
復制光線實例。
Parameters:
沿r(t)=o+t*d給出的射線計算點,其中o是射線的原點,d是方向。
Parameters:
Example
//Get the first intersection point of a ray and an ellipsoid.
var intersection = bmgl.IntersectionTests.rayEllipsoid(ray, ellipsoid);
var point = bmgl.Ray.getPoint(ray, intersection.start);