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