Constructors
constructor
- new Ray(origin?, direction?): Ray
Returns Ray
Properties
direction
origin
Methods
applyMatrix4
- applyMatrix4(matrix4): Ray
Returns Ray
at
- at(t, target): Vector3
clone
- clone(): this
Returns this
closestPointToPoint
- closestPointToPoint(point, target): Vector3
copy
- copy(ray): this
Returns this
distanceSqToPoint
- distanceSqToPoint(point): number
Returns number
distanceSqToSegment
- distanceSqToSegment(v0, v1, optionalPointOnRay?, optionalPointOnSegment?): number
Returns number
distanceToPlane
- distanceToPlane(plane): number
Returns number
distanceToPoint
- distanceToPoint(point): number
Returns number
equals
- equals(ray): boolean
Returns boolean
intersectBox
- intersectBox(box, target): null | Vector3
Returns null | Vector3
intersectPlane
- intersectPlane(plane, target): null | Vector3
Returns null | Vector3
intersectSphere
- intersectSphere(sphere, target): null | Vector3
Returns null | Vector3
intersectTriangle
- intersectTriangle(a, b, c, backfaceCulling, target): null | Vector3
Returns null | Vector3
intersectsBox
- intersectsBox(box): boolean
Returns boolean
intersectsPlane
- intersectsPlane(plane): boolean
Returns boolean
intersectsSphere
- intersectsSphere(sphere): boolean
Returns boolean
isIntersectionBox
- isIntersectionBox(b): any
Returns any
isIntersectionPlane
- isIntersectionPlane(p): any
Returns any
isIntersectionSphere
- isIntersectionSphere(s): any
Returns any
lookAt
- lookAt(v): Ray
Returns Ray
recast
- recast(t): Ray
Returns Ray
set
- set(origin, direction): Ray
Returns Ray
Default