point

fun point(x: Double, y: Double, z: Double = 0.0)(source)

Draws a point in a 2D or 3D space.

Parameters

x

The x-coordinate of the point.

y

The y-coordinate of the point.

z

The z-coordinate of the point. Defaults to 0.0 for 2D points.


fun point(vector: Vector2)(source)

Draws a point on the canvas at the specified vector's coordinates.

Parameters

vector

The 2D vector containing the x and y coordinates where the point will be drawn.


fun point(vector: Vector3)(source)

Draws a point in 3D space using the specified vector.

Parameters

vector

The 3D vector containing the coordinates (x, y, z) of the point to be drawn.