project

fun project(point: Vector3, target: Vector3): Vector3

point in world space to normalised device coordinates, written into target.


fun project(x: Float, y: Float, z: Float, target: FloatArray, offset: Int = 0)

The same projection for callers that draw in floats. Writes x, y, z into target from offset. Nothing is allocated, so it can run once per vertex per frame.