Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/remapper/src/deps.ts>three.Ray

A framework for Beat Saber map scripting.
Go to Latest
class three.Ray
Re-export
import { three } from "https://deno.land/x/remapper@2.1.0/src/deps.ts";
const { Ray } = three;

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