Ray
The Ray class is used to manage rays.
构造方法
Ray.new ( origin? : Vector3 , direction : Vector3 ) |
| Create a ray starting from the origin point and going in the direction specified by the direction vector. |
成员变量
Ray.origin : Vector3 |
| (Read Only) The starting point of the ray. |
Ray.direction : Vector3 |
| (Read Only) The direction of the ray. |
成员方法
Ray.GetRayDest ( distance : number ) : Vector3 |
| Get the position point after extending the ray by a given distance. |
Ray.EqualsTo ( other : Ray ) : boolean |
| Determines whether the current Ray is equal to the target Ray. |
Ray.toString ( ) : string |
| Get the string representation of the Ray's properties. |
Ray.CopyFrom ( from : Ray ) : void |
| Copy from the specified object to the current object. |
静态方法
Ray.Clone ( val : Ray ) : Ray |
| This is a static function that copies the given Ray object and returns a new Ray object. |
Ray.EqualsTo ( lhs : Ray , rhs : Ray ) : boolean |
| This is a static function that determines whether two Rays are equal. |
