UNPKG

@pilotlab/lux-types

Version:

A luxurious user experience framework, developed by your friends at Pilot.

36 lines (29 loc) 1.14 kB
import IPoint from './interfaces/iPoint'; /** * A Simple 3D Cartesian Coordinate System. */ export class CoordinateSystem { // constructor(x?:number, y?:number, z?:number) { // super('coordinateSystem', x, y, z); // } // // // static get empty():CoordinateSystem { // let coordinateSystem:CoordinateSystem = new CoordinateSystem(); // coordinateSystem.x = null; // coordinateSystem.y = null; // coordinateSystem.z = null; // return coordinateSystem; // } // // // /*====================================================================* // START: public Properties // *====================================================================*/ // get zMax():number { return 600; } /*====================================================================* START: Public Methods *====================================================================*/ // getPointFromScreenCoordinates(x:number, y:number):IPoint { return new Point(x - this.x, -1 * (y - this.y), 0, this); } } // End class export default CoordinateSystem;