Namespaces

Types in MathNet.Spatial.Euclidean

Type Matrix3D

Namespace MathNet.Spatial.Euclidean

Helper class for working with 3D matrixes

Static Functions

Public Static Functions

Matrix<double> RotationAroundArbitraryVector(UnitVector3D aboutVector, Angle angle)

Creates a rotation matrix around an arbitrary vector
Parameters
UnitVector3D aboutVector

The vector

Angle angle

Angle in degrees

Return
Matrix<double>

A transform matrix

Matrix<double> RotationAroundArbitraryVector<T>(UnitVector3D aboutVector, double angle, T angleUnit)

Creates a rotation matrix around an arbitrary vector
Obsolete: Use Angle instead, Obsolete from 2017-12-12
Parameters
UnitVector3D aboutVector

The vector

double angle

Angle in degrees

T angleUnit

The angle unit

Return
Matrix<double>

A transform matrix

DenseMatrix RotationAroundXAxis(Angle angle)

Creates a rotation matrix around the X axis
Parameters
Angle angle

The angle to rotate

Return
DenseMatrix

A rotation matrix

DenseMatrix RotationAroundYAxis(Angle angle)

Creates a rotation matrix around the Y axis
Parameters
Angle angle

The angle to rotate

Return
DenseMatrix

A rotation matrix

Matrix<double> RotationAroundZAxis(Angle angle)

Creates a rotation matrix around the Z axis
Parameters
Angle angle

The angle to rotate

Return
Matrix<double>

A rotation matrix

Matrix<double> RotationTo(Vector3D fromVector, Vector3D toVector, Nullable<UnitVector3D> axis)

Sets to the matrix of rotation that would align the 'from' vector with the 'to' vector. The optional Axis argument may be used when the two vectors are parallel and in opposite directions to specify a specific solution, but is otherwise ignored.
Parameters
Vector3D fromVector

Input Vector object to align from.

Vector3D toVector

Input Vector object to align to.

Nullable<UnitVector3D> axis

Input Vector object.

Return
Matrix<double>

A transform matrix

Matrix<double> RotationTo(UnitVector3D fromVector, UnitVector3D toVector, Nullable<UnitVector3D> axis)

Sets to the matrix of rotation that would align the 'from' vector with the 'to' vector. The optional Axis argument may be used when the two vectors are parallel and in opposite directions to specify a specific solution, but is otherwise ignored.
Parameters
UnitVector3D fromVector

Input Vector object to align from.

UnitVector3D toVector

Input Vector object to align to.

Nullable<UnitVector3D> axis

Input Vector object.

Return
Matrix<double>

A transform matrix