Computes a rotated line.
Namespace:
ceometric.VectorGeometryAssembly: ceometric.VectorGeometry (in ceometric.VectorGeometry.dll) Version: 1.6.0.0 (1.6.0.0)
Syntax
| C# |
|---|
public Line Rotate( Point center, Matrix3d rotationMatrix ) |
| Visual Basic (Declaration) |
|---|
Public Function Rotate ( _ center As Point, _ rotationMatrix As Matrix3d _ ) As Line |
| Visual C++ |
|---|
public: Line^ Rotate( Point^ center, Matrix3d^ rotationMatrix ) |
Parameters
- center
- Type: ceometric.VectorGeometry..::.Point
The center of rotation.
- rotationMatrix
- Type: ceometric.VectorGeometry..::.Matrix3d
A rotation matrix.
Return Value
Returns a rotated line. The rotation matrix can easily be generated using the static Matrix3d.Rotation... matrices.
Remarks
This method does not check if rotationMatrix is a rotation matrix.
If it is not, the object gets distorted.