- subtract(a, b): Point
- subtract(a, b): Point3d
- subtract(a, x, y): Point
Parameters
- a: Point
- x: number
- y: number
- subtract(a, x, y, z): Point3d
Parameters
- a: Point3d
- x: number
- y: number
- z: number
- subtract(ax, ay, bx, by): Point
Parameters
- ax: number
- ay: number
- bx: number
- by: number
- subtract(ax, ay, az, bx, by, bz): Point3d
Parameters
- ax: number
- ay: number
- az: number
- bx: number
- by: number
- bz: number
Returns a Point with the x,y,z values of two points subtracted (a-b).
z
parameter is used if present. Uses a default value of 0 for 'z' when subtracting a 2D point with a 3D one.Examples: