Members
direction : Cartesian3
光線的方向。
origin : Cartesian3
射線的起源。
-
Default Value:
Cartesian3.ZERO
Methods
(static) clone(ray, result) → {Ray}
復(fù)制光線實(shí)例。
Parameters:
沿r(t)=o+t*d給出的射線計(jì)算點(diǎn),其中o是射線的原點(diǎn),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);