ts-scikit
Version:
A scientific toolkit written in Typescript
32 lines (31 loc) • 799 B
TypeScript
/**
* A tuple with 3 components: x, y, and z.
*/
export declare class Tuple3 {
x: number;
y: number;
z: number;
/**
* Creates a new tuple from an existing one.
* @param t the tuple.
*/
static FromExisting(t: Tuple3): Tuple3;
/**
* Constructs a new tuple with three specified components.
* @param x the x-component.
* @param y the y-component.
* @param z the z-component.
*/
constructor(x: number, y: number, z: number);
/**
* Copies this tuple.
* @returns a copy of this tuple.
*/
clone(): Tuple3;
/**
* Determines if the components of this tuple equal those of another tuple.
* @param o the tuple.
* @returns true, if equals; false, otherwise.
*/
equals(o: Tuple3): boolean;
}