Constructors
constructor
- new Point(ix, iy, ishape?): Point
Parameters
- ix: number
- iy: number
- ishape: ShapePoint = ShapePoint.eDefault
Properties
Methods
angleFromToPoints
- angleFromToPoints(p2, p3): number
Returns number
angleOrig
- angleOrig(): number
Returns number
angleToPoint
- angleToPoint(p2): number
Returns number
distanceOrig
- distanceOrig(): number
Returns number
distanceToPoint
- distanceToPoint(p2): number
Returns number
draw
- draw(ctx, cAdjust, color?, ishape?): void
Parameters
- ctx: CanvasRenderingContext2D
- cAdjust: tCanvasAdjust
- color: string = colors.point
- ishape: ShapePoint = ShapePoint.eDefault
Returns void
equidistantPoint
- equidistantPoint(p2, dist, p3): Point
isEqual
- isEqual(ic): boolean
Returns boolean
translatePolar
- translatePolar(ia, il): Point