Computes a rotated 3d vector.
Namespace:
ceometric.VectorGeometryAssembly: ceometric.VectorGeometry (in ceometric.VectorGeometry.dll) Version: 1.6.0.0 (1.6.0.0)
Syntax
| C# |
|---|
public Vector3d Rotate( Matrix3d rotationMatrix ) |
| Visual Basic (Declaration) |
|---|
Public Function Rotate ( _ rotationMatrix As Matrix3d _ ) As Vector3d |
| Visual C++ |
|---|
public: Vector3d^ Rotate( Matrix3d^ rotationMatrix ) |
Parameters
- rotationMatrix
- Type: ceometric.VectorGeometry..::.Matrix3d
A 3d rotation matrix.
Return Value
Returns a rotated 3d vector. 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.
Exceptions
| Exception | Condition |
|---|---|
| System..::.ArgumentException | The vector is not a 3d vector. |