UNPKG

813 BTypeScriptView Raw
1import { Matrix4 } from "./Matrix4.js";
2import { Vector3 } from "./Vector3.js";
3
4export class Line3 {
5 constructor(start?: Vector3, end?: Vector3);
6
7 /**
8 * @default new THREE.Vector3()
9 */
10 start: Vector3;
11
12 /**
13 * @default new THREE.Vector3()
14 */
15 end: Vector3;
16
17 set(start?: Vector3, end?: Vector3): Line3;
18 clone(): this;
19 copy(line: Line3): this;
20 getCenter(target: Vector3): Vector3;
21 delta(target: Vector3): Vector3;
22 distanceSq(): number;
23 distance(): number;
24 at(t: number, target: Vector3): Vector3;
25 closestPointToPointParameter(point: Vector3, clampToLine?: boolean): number;
26 closestPointToPoint(point: Vector3, clampToLine: boolean, target: Vector3): Vector3;
27 applyMatrix4(matrix: Matrix4): Line3;
28 equals(line: Line3): boolean;
29}