UNPKG

@altostra/core

Version:

Core library for shared types and logic

17 lines (16 loc) 427 B
export declare type Point = PointBrand & PointData; export interface PointData { x: number; y: number; z: number; } export interface PointBrand { readonly Point: unique symbol; } /** * Creates a point in 3D space. * @param x The x coordinate. * @param y The y coordinate. * @param z An optional z coordinate (0 if not specified). */ export declare const point: (x: number, y: number, z?: number) => Point;