toVector3

fun PVector.toVector3(): Vector3(source)

Converts a PVector into an Vector3 instance.

Return

a Vector3 object with the same x, y, and z values as the original PVector, converted to Double.