Type Definitions
Coordinates2D
- Description
An array of length 2 or 3.
- coordinate array
[x, y]: affine coordinates - coordinate array
[z, x, y]: homogeneous coordinates.
In most cases, both types (affine or homogeneous) coordinates can be used.
- coordinate array
- Type
- array
- Source
- jxg.js, line 117
Coordinates3D
- Description
An array of length 3 or 4.
- coordinate array
[x, y, z]: affine coordinates - coordinate array
[w, x, y, z]: homogeneous coordinates.
In most cases, both types (affine or homogeneous) coordinates can be used.
- coordinate array
- Type
- array
- Source
- jxg.js, line 140
NumberLike()
- Description
A number or a function returning a number.
- Type
- Number | function
- Source
- jxg.js, line 134
Point3DFunction()
- Description
Function returning a 3D point like object.
This could be
- a Point3D
- coordinate array
[x, y, z] - coordinate array
[w, x, y, z]with homogeneous coordinates. In this case,wis 0 for infinite points, non-zero otherwise.
- Type
- function
- Source
- jxg.js, line 157
Point3DLike
- Description
A point, coordinates, or a function returning point or coordinates.
- Type
- Point3D | Coordinates3D | Point3DFunction
- Source
- jxg.js, line 151
PointFunction()
- Description
Function returning a point like object.
This could be
- a Point
- coordinate array
[x, y] - coordinate array
[z, x, y]with homogeneous coordinates. In this case,zis 0 for infinite points, non-zero otherwise.
- Type
- function
- Source
- jxg.js, line 104
PointLike
- Description
A point, coordinates array, or a function returning point or coordinates.
- Type
- Point | Coordinates2D | PointFunction
- Source
- jxg.js, line 128