Constructors
constructor
- newray(ox?: number, oy?: number, oz?: number, dx?: number, dy?: number, dz?: number): ray
-
Parameters
-
Default value ox: number = 0
-
Default value oy: number = 0
-
Default value oz: number = 0
-
Default value dx: number = 0
-
Default value dy: number = 0
-
Default value dz: number = -1
Returns ray
Properties
Protected Readonly _type
_type: number
Methods
computeHit
- computeHit(out: IVec3Like, distance: number): void
Static clone
-
Parameters
Returns ray
克隆出的新对象。
Static copy
-
Parameters
Returns ray
out 接受操作的 ray。
Static create
- create(ox?: number, oy?: number, oz?: number, dx?: number, dy?: number, dz?: number): ray
-
Parameters
-
Default value ox: number = 0
-
Default value oy: number = 0
-
Default value oz: number = 0
-
Default value dx: number = 0
-
Default value dy: number = 0
-
Default value dz: number = 1
Returns ray
射线。
Static fromPoints
-
Parameters
Returns ray
out 接受操作的射线。
Static set
- set(out: ray, ox: number, oy: number, oz: number, dx: number, dy: number, dz: number): ray
-
Parameters
-
-
ox: number
-
oy: number
-
oz: number
-
dx: number
-
dy: number
-
dz: number
Returns ray
out 接受操作的射线。
Basic Geometry: ray.