Drawing3d documented Class Library

LineType2d Multiplication Operator

Transforms a LineType2d by a transformation M.

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

Parameters

M
Transformation
L
LineType2d, which will transformed

Return Value

Example

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

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

See Also

LineType2d Class | Drawing3d.Math Namespace | mul