@dominicstop/utils
Version:
Yet another event emitter written in typescript.
28 lines • 927 B
TypeScript
import { Cloneable } from "../types/Cloneable";
import { ValueRepresentable } from "../types/ValueRepresentable";
import { Line } from "./Line";
import { Point, PointValue } from "./Point";
export type TriangleValue = {
topPoint: PointValue;
leadingPoint: PointValue;
trailingPoint: PointValue;
};
export declare class Triangle implements Cloneable<Triangle>, ValueRepresentable<TriangleValue> {
topPoint: Point;
leadingPoint: Point;
trailingPoint: Point;
constructor(args: TriangleValue);
get asValue(): TriangleValue;
get leadingSide(): Line;
get trailingSide(): Line;
get bottomSide(): Line;
get centerLine(): Line;
get height(): number;
get width(): number;
get centroid(): Point;
get area(): number;
get isCollinear(): boolean;
clone(): Triangle;
resizeTriangleRelativeToTopPoint(newHeight: number): void;
}
//# sourceMappingURL=Triangle.d.ts.map