Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/threejs_4_deno/src/Three.js>Ray

A simple transformation of three.js for use within a Deno workflow
Go to Latest
class Ray
Re-export
import { Ray } from "https://deno.land/x/threejs_4_deno@v121/src/Three.js";

Constructors

new
Ray(origin?: Vector3, direction?: Vector3)

Properties

direction: Vector3
origin: Vector3

Methods

at(t: number, target: Vector3): Vector3
clone(): this
copy(ray: Ray): this
distanceSqToPoint(point: Vector3): number
distanceSqToSegment(
v0: Vector3,
v1: Vector3,
optionalPointOnRay?: Vector3,
optionalPointOnSegment?: Vector3,
): number
distanceToPlane(plane: Plane): number
distanceToPoint(point: Vector3): number
equals(ray: Ray): boolean
intersectBox(box: Box3, target: Vector3): Vector3 | null
intersectPlane(plane: Plane, target: Vector3): Vector3 | null
intersectsBox(box: Box3): boolean
intersectSphere(sphere: Sphere, target: Vector3): Vector3 | null
intersectsPlane(plane: Plane): boolean
intersectsSphere(sphere: Sphere): boolean
intersectTriangle(
backfaceCulling: boolean,
target: Vector3,
): Vector3 | null
deprecated
isIntersectionBox(b: any): any
deprecated
isIntersectionPlane(p: any): any
deprecated
isIntersectionSphere(s: any): any
recast(t: number): Ray
set(origin: Vector3, direction: Vector3): Ray