mesh-simplifier
Version:
Collection of mesh simplification methods written in Typescript
18 lines (17 loc) • 510 B
TypeScript
declare class Vector3 {
static addVectors(v1: Vector3, v2: Vector3): Vector3;
static subVectors(v1: Vector3, v2: Vector3): Vector3;
x: number;
y: number;
z: number;
constructor(v0?: number, v1?: number, v2?: number);
copy(other: Vector3): this;
add(other: Vector3): this;
sub(other: Vector3): this;
dot(other: Vector3): number;
cross(other: Vector3): this;
normalize(): this;
length(): number;
scaleSclar(factor: number): this;
}
export default Vector3;