Drawing3d documented Class Library

LineType Multiplication Operator

Transforms a LineType by a transformation M.

[Visual Basic]
Public Shared Operator *( _
   ByVal L As LineType, _
   ByVal M As Matrix _
)
[C#]
public static LineType operator *(
   LineType L,
   Matrix M
);

Parameters

L
LineType, which will be transformed
M
Transformation

Return Value

Example

Matrix M = Matrix.Translation( new xyz(3, 2, 4));
LineType L = new LineType (new xyz(1, 1, 1), new xyz (2, 1, 3)).
L = L * M;

// L.P is now ( 4, 3, 5)
// L.Direction is still (2, 1, 3)

See Also

LineType Class | Drawing3d.Math Namespace | mul