Spaces:
Sleeping
Sleeping
File size: 1,389 Bytes
2b7aae2 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 | import { Vector3 } from './Vector3';
import { Sphere } from './Sphere';
import { Line3 } from './Line3';
import { Box3 } from './Box3';
import { Matrix4 } from './Matrix4';
import { Matrix3 } from './Matrix3';
export class Plane {
constructor(normal?: Vector3, constant?: number);
/**
* @default new THREE.Vector3( 1, 0, 0 )
*/
normal: Vector3;
/**
* @default 0
*/
constant: number;
readonly isPlane: true;
set(normal: Vector3, constant: number): Plane;
setComponents(x: number, y: number, z: number, w: number): Plane;
setFromNormalAndCoplanarPoint(normal: Vector3, point: Vector3): Plane;
setFromCoplanarPoints(a: Vector3, b: Vector3, c: Vector3): Plane;
clone(): this;
copy(plane: Plane): this;
normalize(): Plane;
negate(): Plane;
distanceToPoint(point: Vector3): number;
distanceToSphere(sphere: Sphere): number;
projectPoint(point: Vector3, target: Vector3): Vector3;
intersectLine(line: Line3, target: Vector3): Vector3 | null;
intersectsLine(line: Line3): boolean;
intersectsBox(box: Box3): boolean;
intersectsSphere(sphere: Sphere): boolean;
coplanarPoint(target: Vector3): Vector3;
applyMatrix4(matrix: Matrix4, optionalNormalMatrix?: Matrix3): Plane;
translate(offset: Vector3): Plane;
equals(plane: Plane): boolean;
/**
* @deprecated Use {@link Plane#intersectsLine .intersectsLine()} instead.
*/
isIntersectionLine(l: any): any;
}
|