getNormal(X, Y, Z)
getNormal()
returns the normal of this surface as a vector, represented by an array of three numbers. Optionally, the position (which must be on the surface) where the normal is required may also be given. If not given, the centre of the surface is used.
X | double | X ordinate |
Y | double | Y ordinate |
Z | double | Z ordinate |
pos | Array | Array of 3 doubles, representing the coordinates |
Return value | array of real numbers | The returned vector as an array of three numbers |
Back to Surface
Back to Overview