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