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