Drawing3d documented Class Library

xyz.mul(Matrix) Method

Multiply the point with a matrix and return the result This matrix multiplication is often used in transformations.

[Visual Basic]
Public Overloads Sub mul( _
   ByVal a As Matrix _
public xyz mul(
   Matrix a


Transformations matrix, which will be multiplied

Return Value

Transformed point


The Matrix a must be a 4 X 4 matrix. So the 3D-point will be "lifted" to a 4D-Point by setting the fourth coordinate to 1. After the well-known matrix multiplication the coordinates are divided by the result in the fourth coordinate. In this way, it is for example possible, to transform a point by a matrix, which represents a perspectively projection.

See Also

xyz Class | Drawing3d.Math Namespace | xyz.mul Overload List