2018-05-27 03:02:24 +08:00
|
|
|
#[cfg(any(feature = "alloc", feature = "std"))]
|
2019-03-23 21:29:07 +08:00
|
|
|
use crate::base::dimension::Dynamic;
|
|
|
|
use crate::base::dimension::{U1, U2, U3, U4, U5, U6};
|
2020-04-06 00:49:48 +08:00
|
|
|
use crate::base::storage::Owned;
|
2018-05-19 23:15:15 +08:00
|
|
|
#[cfg(any(feature = "std", feature = "alloc"))]
|
2019-03-23 21:29:07 +08:00
|
|
|
use crate::base::vec_storage::VecStorage;
|
2021-04-12 16:34:15 +08:00
|
|
|
use crate::base::{ArrayStorage, Const, Matrix, Unit};
|
2016-12-05 05:44:42 +08:00
|
|
|
|
|
|
|
/*
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* Column-major matrices.
|
|
|
|
*
|
|
|
|
*
|
|
|
|
*/
|
2021-04-11 17:00:38 +08:00
|
|
|
|
|
|
|
/// An owned matrix column-major matrix with `R` rows and `C` columns.
|
2020-11-21 00:46:03 +08:00
|
|
|
///
|
|
|
|
/// **Because this is an alias, not all its methods are listed here. See the [`Matrix`](crate::base::Matrix) type too.**
|
2021-04-11 17:00:38 +08:00
|
|
|
pub type OMatrix<T, R, C> = Matrix<T, R, C, Owned<T, R, C>>;
|
2016-12-05 05:44:42 +08:00
|
|
|
|
2021-04-11 17:00:38 +08:00
|
|
|
/// An owned matrix column-major matrix with `R` rows and `C` columns.
|
2020-11-21 00:46:03 +08:00
|
|
|
///
|
|
|
|
/// **Because this is an alias, not all its methods are listed here. See the [`Matrix`](crate::base::Matrix) type too.**
|
2021-04-11 17:00:38 +08:00
|
|
|
#[deprecated(
|
|
|
|
note = "use SMatrix for a statically-sized matrix using integer dimensions, or OMatrix for an owned matrix using types as dimensions."
|
|
|
|
)]
|
|
|
|
pub type MatrixMN<T, R, C> = Matrix<T, R, C, Owned<T, R, C>>;
|
2016-12-05 05:44:42 +08:00
|
|
|
|
2021-04-12 17:15:01 +08:00
|
|
|
/// An owned matrix column-major matrix with `D` columns.
|
|
|
|
///
|
|
|
|
/// **Because this is an alias, not all its methods are listed here. See the [`Matrix`](crate::base::Matrix) type too.**
|
|
|
|
#[deprecated(note = "use OMatrix<T, D, D> or SMatrix<T, D, D> instead.")]
|
|
|
|
pub type MatrixN<T, D> = Matrix<T, D, D, Owned<T, D, D>>;
|
|
|
|
|
2021-04-11 17:00:38 +08:00
|
|
|
/// A statically sized column-major matrix with `R` rows and `C` columns.
|
2020-11-21 00:46:03 +08:00
|
|
|
///
|
|
|
|
/// **Because this is an alias, not all its methods are listed here. See the [`Matrix`](crate::base::Matrix) type too.**
|
2021-04-11 17:00:38 +08:00
|
|
|
pub type SMatrix<T, const R: usize, const C: usize> =
|
2021-04-12 16:34:15 +08:00
|
|
|
Matrix<T, Const<R>, Const<C>, ArrayStorage<T, R, C>>;
|
2017-08-03 01:37:44 +08:00
|
|
|
|
|
|
|
/// A dynamically sized column-major matrix.
|
2020-11-21 00:46:03 +08:00
|
|
|
///
|
|
|
|
/// **Because this is an alias, not all its methods are listed here. See the [`Matrix`](crate::base::Matrix) type too.**
|
2018-05-19 23:15:15 +08:00
|
|
|
#[cfg(any(feature = "std", feature = "alloc"))]
|
2021-04-12 16:34:15 +08:00
|
|
|
pub type DMatrix<T> = Matrix<T, Dynamic, Dynamic, VecStorage<T, Dynamic, Dynamic>>;
|
2016-12-05 05:44:42 +08:00
|
|
|
|
2020-11-14 01:35:23 +08:00
|
|
|
/// A heap-allocated, column-major, matrix with a dynamic number of rows and 1 columns.
|
2020-11-21 00:46:03 +08:00
|
|
|
///
|
|
|
|
/// **Because this is an alias, not all its methods are listed here. See the [`Matrix`](crate::base::Matrix) type too.**
|
2020-11-14 01:35:23 +08:00
|
|
|
#[cfg(any(feature = "std", feature = "alloc"))]
|
2021-04-12 16:34:15 +08:00
|
|
|
pub type MatrixXx1<T> = Matrix<T, Dynamic, U1, VecStorage<T, Dynamic, U1>>;
|
2020-11-14 01:35:23 +08:00
|
|
|
/// A heap-allocated, column-major, matrix with a dynamic number of rows and 2 columns.
|
2020-11-21 00:46:03 +08:00
|
|
|
///
|
|
|
|
/// **Because this is an alias, not all its methods are listed here. See the [`Matrix`](crate::base::Matrix) type too.**
|
2020-11-14 01:35:23 +08:00
|
|
|
#[cfg(any(feature = "std", feature = "alloc"))]
|
2021-04-12 16:34:15 +08:00
|
|
|
pub type MatrixXx2<T> = Matrix<T, Dynamic, U2, VecStorage<T, Dynamic, U2>>;
|
2020-11-14 01:35:23 +08:00
|
|
|
/// A heap-allocated, column-major, matrix with a dynamic number of rows and 3 columns.
|
2020-11-21 00:46:03 +08:00
|
|
|
///
|
|
|
|
/// **Because this is an alias, not all its methods are listed here. See the [`Matrix`](crate::base::Matrix) type too.**
|
2020-11-14 01:35:23 +08:00
|
|
|
#[cfg(any(feature = "std", feature = "alloc"))]
|
2021-04-12 16:34:15 +08:00
|
|
|
pub type MatrixXx3<T> = Matrix<T, Dynamic, U3, VecStorage<T, Dynamic, U3>>;
|
2020-11-14 01:35:23 +08:00
|
|
|
/// A heap-allocated, column-major, matrix with a dynamic number of rows and 4 columns.
|
2020-11-21 00:46:03 +08:00
|
|
|
///
|
|
|
|
/// **Because this is an alias, not all its methods are listed here. See the [`Matrix`](crate::base::Matrix) type too.**
|
2020-11-14 01:35:23 +08:00
|
|
|
#[cfg(any(feature = "std", feature = "alloc"))]
|
2021-04-12 16:34:15 +08:00
|
|
|
pub type MatrixXx4<T> = Matrix<T, Dynamic, U4, VecStorage<T, Dynamic, U4>>;
|
2020-11-14 01:35:23 +08:00
|
|
|
/// A heap-allocated, column-major, matrix with a dynamic number of rows and 5 columns.
|
2020-11-21 00:46:03 +08:00
|
|
|
///
|
|
|
|
/// **Because this is an alias, not all its methods are listed here. See the [`Matrix`](crate::base::Matrix) type too.**
|
2020-11-14 01:35:23 +08:00
|
|
|
#[cfg(any(feature = "std", feature = "alloc"))]
|
2021-04-12 16:34:15 +08:00
|
|
|
pub type MatrixXx5<T> = Matrix<T, Dynamic, U5, VecStorage<T, Dynamic, U5>>;
|
2020-11-14 01:35:23 +08:00
|
|
|
/// A heap-allocated, column-major, matrix with a dynamic number of rows and 6 columns.
|
2020-11-21 00:46:03 +08:00
|
|
|
///
|
|
|
|
/// **Because this is an alias, not all its methods are listed here. See the [`Matrix`](crate::base::Matrix) type too.**
|
2020-11-14 01:35:23 +08:00
|
|
|
#[cfg(any(feature = "std", feature = "alloc"))]
|
2021-04-12 16:34:15 +08:00
|
|
|
pub type MatrixXx6<T> = Matrix<T, Dynamic, U6, VecStorage<T, Dynamic, U6>>;
|
2020-11-14 01:35:23 +08:00
|
|
|
|
|
|
|
/// A heap-allocated, row-major, matrix with 1 rows and a dynamic number of columns.
|
2020-11-21 00:46:03 +08:00
|
|
|
///
|
|
|
|
/// **Because this is an alias, not all its methods are listed here. See the [`Matrix`](crate::base::Matrix) type too.**
|
2020-11-14 01:35:23 +08:00
|
|
|
#[cfg(any(feature = "std", feature = "alloc"))]
|
2021-04-12 16:34:15 +08:00
|
|
|
pub type Matrix1xX<T> = Matrix<T, U1, Dynamic, VecStorage<T, U1, Dynamic>>;
|
2020-11-14 01:35:23 +08:00
|
|
|
/// A heap-allocated, row-major, matrix with 2 rows and a dynamic number of columns.
|
2020-11-21 00:46:03 +08:00
|
|
|
///
|
|
|
|
/// **Because this is an alias, not all its methods are listed here. See the [`Matrix`](crate::base::Matrix) type too.**
|
2020-11-14 01:35:23 +08:00
|
|
|
#[cfg(any(feature = "std", feature = "alloc"))]
|
2021-04-12 16:34:15 +08:00
|
|
|
pub type Matrix2xX<T> = Matrix<T, U2, Dynamic, VecStorage<T, U2, Dynamic>>;
|
2020-11-14 01:35:23 +08:00
|
|
|
/// A heap-allocated, row-major, matrix with 3 rows and a dynamic number of columns.
|
2020-11-21 00:46:03 +08:00
|
|
|
///
|
|
|
|
/// **Because this is an alias, not all its methods are listed here. See the [`Matrix`](crate::base::Matrix) type too.**
|
2020-11-14 01:35:23 +08:00
|
|
|
#[cfg(any(feature = "std", feature = "alloc"))]
|
2021-04-12 16:34:15 +08:00
|
|
|
pub type Matrix3xX<T> = Matrix<T, U3, Dynamic, VecStorage<T, U3, Dynamic>>;
|
2020-11-14 01:35:23 +08:00
|
|
|
/// A heap-allocated, row-major, matrix with 4 rows and a dynamic number of columns.
|
2020-11-21 00:46:03 +08:00
|
|
|
///
|
|
|
|
/// **Because this is an alias, not all its methods are listed here. See the [`Matrix`](crate::base::Matrix) type too.**
|
2020-11-14 01:35:23 +08:00
|
|
|
#[cfg(any(feature = "std", feature = "alloc"))]
|
2021-04-12 16:34:15 +08:00
|
|
|
pub type Matrix4xX<T> = Matrix<T, U4, Dynamic, VecStorage<T, U4, Dynamic>>;
|
2020-11-14 01:35:23 +08:00
|
|
|
/// A heap-allocated, row-major, matrix with 5 rows and a dynamic number of columns.
|
2020-11-21 00:46:03 +08:00
|
|
|
///
|
|
|
|
/// **Because this is an alias, not all its methods are listed here. See the [`Matrix`](crate::base::Matrix) type too.**
|
2020-11-14 01:35:23 +08:00
|
|
|
#[cfg(any(feature = "std", feature = "alloc"))]
|
2021-04-12 16:34:15 +08:00
|
|
|
pub type Matrix5xX<T> = Matrix<T, U5, Dynamic, VecStorage<T, U5, Dynamic>>;
|
2020-11-14 01:35:23 +08:00
|
|
|
/// A heap-allocated, row-major, matrix with 6 rows and a dynamic number of columns.
|
2020-11-21 00:46:03 +08:00
|
|
|
///
|
|
|
|
/// **Because this is an alias, not all its methods are listed here. See the [`Matrix`](crate::base::Matrix) type too.**
|
2020-11-14 01:35:23 +08:00
|
|
|
#[cfg(any(feature = "std", feature = "alloc"))]
|
2021-04-12 16:34:15 +08:00
|
|
|
pub type Matrix6xX<T> = Matrix<T, U6, Dynamic, VecStorage<T, U6, Dynamic>>;
|
2020-11-14 01:35:23 +08:00
|
|
|
|
2017-02-13 01:17:09 +08:00
|
|
|
/// A stack-allocated, column-major, 1x1 square matrix.
|
2020-11-21 00:46:03 +08:00
|
|
|
///
|
|
|
|
/// **Because this is an alias, not all its methods are listed here. See the [`Matrix`](crate::base::Matrix) type too.**
|
2021-04-12 16:34:15 +08:00
|
|
|
pub type Matrix1<T> = Matrix<T, U1, U1, ArrayStorage<T, 1, 1>>;
|
2017-02-13 01:17:09 +08:00
|
|
|
/// A stack-allocated, column-major, 2x2 square matrix.
|
2020-11-21 00:46:03 +08:00
|
|
|
///
|
|
|
|
/// **Because this is an alias, not all its methods are listed here. See the [`Matrix`](crate::base::Matrix) type too.**
|
2021-04-12 16:34:15 +08:00
|
|
|
pub type Matrix2<T> = Matrix<T, U2, U2, ArrayStorage<T, 2, 2>>;
|
2017-02-13 01:17:09 +08:00
|
|
|
/// A stack-allocated, column-major, 3x3 square matrix.
|
2020-11-21 00:46:03 +08:00
|
|
|
///
|
|
|
|
/// **Because this is an alias, not all its methods are listed here. See the [`Matrix`](crate::base::Matrix) type too.**
|
2021-04-12 16:34:15 +08:00
|
|
|
pub type Matrix3<T> = Matrix<T, U3, U3, ArrayStorage<T, 3, 3>>;
|
2017-02-13 01:17:09 +08:00
|
|
|
/// A stack-allocated, column-major, 4x4 square matrix.
|
2020-11-21 00:46:03 +08:00
|
|
|
///
|
|
|
|
/// **Because this is an alias, not all its methods are listed here. See the [`Matrix`](crate::base::Matrix) type too.**
|
2021-04-12 16:34:15 +08:00
|
|
|
pub type Matrix4<T> = Matrix<T, U4, U4, ArrayStorage<T, 4, 4>>;
|
2017-02-13 01:17:09 +08:00
|
|
|
/// A stack-allocated, column-major, 5x5 square matrix.
|
2020-11-21 00:46:03 +08:00
|
|
|
///
|
|
|
|
/// **Because this is an alias, not all its methods are listed here. See the [`Matrix`](crate::base::Matrix) type too.**
|
2021-04-12 16:34:15 +08:00
|
|
|
pub type Matrix5<T> = Matrix<T, U5, U5, ArrayStorage<T, 5, 5>>;
|
2017-02-13 01:17:09 +08:00
|
|
|
/// A stack-allocated, column-major, 6x6 square matrix.
|
2020-11-21 00:46:03 +08:00
|
|
|
///
|
|
|
|
/// **Because this is an alias, not all its methods are listed here. See the [`Matrix`](crate::base::Matrix) type too.**
|
2021-04-12 16:34:15 +08:00
|
|
|
pub type Matrix6<T> = Matrix<T, U6, U6, ArrayStorage<T, 6, 6>>;
|
2016-12-05 05:44:42 +08:00
|
|
|
|
2018-09-10 01:27:33 +08:00
|
|
|
/// A stack-allocated, column-major, 1x2 matrix.
|
2020-11-21 00:46:03 +08:00
|
|
|
///
|
|
|
|
/// **Because this is an alias, not all its methods are listed here. See the [`Matrix`](crate::base::Matrix) type too.**
|
2021-04-12 16:34:15 +08:00
|
|
|
pub type Matrix1x2<T> = Matrix<T, U1, U2, ArrayStorage<T, 1, 2>>;
|
2018-09-10 01:27:33 +08:00
|
|
|
/// A stack-allocated, column-major, 1x3 matrix.
|
2020-11-21 00:46:03 +08:00
|
|
|
///
|
|
|
|
/// **Because this is an alias, not all its methods are listed here. See the [`Matrix`](crate::base::Matrix) type too.**
|
2021-04-12 16:34:15 +08:00
|
|
|
pub type Matrix1x3<T> = Matrix<T, U1, U3, ArrayStorage<T, 1, 3>>;
|
2018-09-10 01:27:33 +08:00
|
|
|
/// A stack-allocated, column-major, 1x4 matrix.
|
2020-11-21 00:46:03 +08:00
|
|
|
///
|
|
|
|
/// **Because this is an alias, not all its methods are listed here. See the [`Matrix`](crate::base::Matrix) type too.**
|
2021-04-12 16:34:15 +08:00
|
|
|
pub type Matrix1x4<T> = Matrix<T, U1, U4, ArrayStorage<T, 1, 4>>;
|
2018-09-10 01:27:33 +08:00
|
|
|
/// A stack-allocated, column-major, 1x5 matrix.
|
2020-11-21 00:46:03 +08:00
|
|
|
///
|
|
|
|
/// **Because this is an alias, not all its methods are listed here. See the [`Matrix`](crate::base::Matrix) type too.**
|
2021-04-12 16:34:15 +08:00
|
|
|
pub type Matrix1x5<T> = Matrix<T, U1, U5, ArrayStorage<T, 1, 5>>;
|
2018-09-10 01:27:33 +08:00
|
|
|
/// A stack-allocated, column-major, 1x6 matrix.
|
2020-11-21 00:46:03 +08:00
|
|
|
///
|
|
|
|
/// **Because this is an alias, not all its methods are listed here. See the [`Matrix`](crate::base::Matrix) type too.**
|
2021-04-12 16:34:15 +08:00
|
|
|
pub type Matrix1x6<T> = Matrix<T, U1, U6, ArrayStorage<T, 1, 6>>;
|
2016-12-05 05:44:42 +08:00
|
|
|
|
2018-09-10 01:27:33 +08:00
|
|
|
/// A stack-allocated, column-major, 2x3 matrix.
|
2020-11-21 00:46:03 +08:00
|
|
|
///
|
|
|
|
/// **Because this is an alias, not all its methods are listed here. See the [`Matrix`](crate::base::Matrix) type too.**
|
2021-04-12 16:34:15 +08:00
|
|
|
pub type Matrix2x3<T> = Matrix<T, U2, U3, ArrayStorage<T, 2, 3>>;
|
2018-09-10 01:27:33 +08:00
|
|
|
/// A stack-allocated, column-major, 2x4 matrix.
|
2020-11-21 00:46:03 +08:00
|
|
|
///
|
|
|
|
/// **Because this is an alias, not all its methods are listed here. See the [`Matrix`](crate::base::Matrix) type too.**
|
2021-04-12 16:34:15 +08:00
|
|
|
pub type Matrix2x4<T> = Matrix<T, U2, U4, ArrayStorage<T, 2, 4>>;
|
2018-09-10 01:27:33 +08:00
|
|
|
/// A stack-allocated, column-major, 2x5 matrix.
|
2020-11-21 00:46:03 +08:00
|
|
|
///
|
|
|
|
/// **Because this is an alias, not all its methods are listed here. See the [`Matrix`](crate::base::Matrix) type too.**
|
2021-04-12 16:34:15 +08:00
|
|
|
pub type Matrix2x5<T> = Matrix<T, U2, U5, ArrayStorage<T, 2, 5>>;
|
2018-09-10 01:27:33 +08:00
|
|
|
/// A stack-allocated, column-major, 2x6 matrix.
|
2020-11-21 00:46:03 +08:00
|
|
|
///
|
|
|
|
/// **Because this is an alias, not all its methods are listed here. See the [`Matrix`](crate::base::Matrix) type too.**
|
2021-04-12 16:34:15 +08:00
|
|
|
pub type Matrix2x6<T> = Matrix<T, U2, U6, ArrayStorage<T, 2, 6>>;
|
2016-12-05 05:44:42 +08:00
|
|
|
|
2018-09-10 01:27:33 +08:00
|
|
|
/// A stack-allocated, column-major, 3x4 matrix.
|
2020-11-21 00:46:03 +08:00
|
|
|
///
|
|
|
|
/// **Because this is an alias, not all its methods are listed here. See the [`Matrix`](crate::base::Matrix) type too.**
|
2021-04-12 16:34:15 +08:00
|
|
|
pub type Matrix3x4<T> = Matrix<T, U3, U4, ArrayStorage<T, 3, 4>>;
|
2018-09-10 01:27:33 +08:00
|
|
|
/// A stack-allocated, column-major, 3x5 matrix.
|
2020-11-21 00:46:03 +08:00
|
|
|
///
|
|
|
|
/// **Because this is an alias, not all its methods are listed here. See the [`Matrix`](crate::base::Matrix) type too.**
|
2021-04-12 16:34:15 +08:00
|
|
|
pub type Matrix3x5<T> = Matrix<T, U3, U5, ArrayStorage<T, 3, 5>>;
|
2018-09-10 01:27:33 +08:00
|
|
|
/// A stack-allocated, column-major, 3x6 matrix.
|
2020-11-21 00:46:03 +08:00
|
|
|
///
|
|
|
|
/// **Because this is an alias, not all its methods are listed here. See the [`Matrix`](crate::base::Matrix) type too.**
|
2021-04-12 16:34:15 +08:00
|
|
|
pub type Matrix3x6<T> = Matrix<T, U3, U6, ArrayStorage<T, 3, 6>>;
|
2016-12-05 05:44:42 +08:00
|
|
|
|
2018-09-10 01:27:33 +08:00
|
|
|
/// A stack-allocated, column-major, 4x5 matrix.
|
2020-11-21 00:46:03 +08:00
|
|
|
///
|
|
|
|
/// **Because this is an alias, not all its methods are listed here. See the [`Matrix`](crate::base::Matrix) type too.**
|
2021-04-12 16:34:15 +08:00
|
|
|
pub type Matrix4x5<T> = Matrix<T, U4, U5, ArrayStorage<T, 4, 5>>;
|
2018-09-10 01:27:33 +08:00
|
|
|
/// A stack-allocated, column-major, 4x6 matrix.
|
2020-11-21 00:46:03 +08:00
|
|
|
///
|
|
|
|
/// **Because this is an alias, not all its methods are listed here. See the [`Matrix`](crate::base::Matrix) type too.**
|
2021-04-12 16:34:15 +08:00
|
|
|
pub type Matrix4x6<T> = Matrix<T, U4, U6, ArrayStorage<T, 4, 6>>;
|
2016-12-05 05:44:42 +08:00
|
|
|
|
2018-09-10 01:27:33 +08:00
|
|
|
/// A stack-allocated, column-major, 5x6 matrix.
|
2020-11-21 00:46:03 +08:00
|
|
|
///
|
|
|
|
/// **Because this is an alias, not all its methods are listed here. See the [`Matrix`](crate::base::Matrix) type too.**
|
2021-04-12 16:34:15 +08:00
|
|
|
pub type Matrix5x6<T> = Matrix<T, U5, U6, ArrayStorage<T, 5, 6>>;
|
2016-12-05 05:44:42 +08:00
|
|
|
|
2018-09-10 01:27:33 +08:00
|
|
|
/// A stack-allocated, column-major, 2x1 matrix.
|
2020-11-21 00:46:03 +08:00
|
|
|
///
|
|
|
|
/// **Because this is an alias, not all its methods are listed here. See the [`Matrix`](crate::base::Matrix) type too.**
|
2021-04-12 16:34:15 +08:00
|
|
|
pub type Matrix2x1<T> = Matrix<T, U2, U1, ArrayStorage<T, 2, 1>>;
|
2018-09-10 01:27:33 +08:00
|
|
|
/// A stack-allocated, column-major, 3x1 matrix.
|
2020-11-21 00:46:03 +08:00
|
|
|
///
|
|
|
|
/// **Because this is an alias, not all its methods are listed here. See the [`Matrix`](crate::base::Matrix) type too.**
|
2021-04-12 16:34:15 +08:00
|
|
|
pub type Matrix3x1<T> = Matrix<T, U3, U1, ArrayStorage<T, 3, 1>>;
|
2018-09-10 01:27:33 +08:00
|
|
|
/// A stack-allocated, column-major, 4x1 matrix.
|
2020-11-21 00:46:03 +08:00
|
|
|
///
|
|
|
|
/// **Because this is an alias, not all its methods are listed here. See the [`Matrix`](crate::base::Matrix) type too.**
|
2021-04-12 16:34:15 +08:00
|
|
|
pub type Matrix4x1<T> = Matrix<T, U4, U1, ArrayStorage<T, 4, 1>>;
|
2018-09-10 01:27:33 +08:00
|
|
|
/// A stack-allocated, column-major, 5x1 matrix.
|
2020-11-21 00:46:03 +08:00
|
|
|
///
|
|
|
|
/// **Because this is an alias, not all its methods are listed here. See the [`Matrix`](crate::base::Matrix) type too.**
|
2021-04-12 16:34:15 +08:00
|
|
|
pub type Matrix5x1<T> = Matrix<T, U5, U1, ArrayStorage<T, 5, 1>>;
|
2018-09-10 01:27:33 +08:00
|
|
|
/// A stack-allocated, column-major, 6x1 matrix.
|
2020-11-21 00:46:03 +08:00
|
|
|
///
|
|
|
|
/// **Because this is an alias, not all its methods are listed here. See the [`Matrix`](crate::base::Matrix) type too.**
|
2021-04-12 16:34:15 +08:00
|
|
|
pub type Matrix6x1<T> = Matrix<T, U6, U1, ArrayStorage<T, 6, 1>>;
|
2016-12-05 05:44:42 +08:00
|
|
|
|
2018-09-10 01:27:33 +08:00
|
|
|
/// A stack-allocated, column-major, 3x2 matrix.
|
2020-11-21 00:46:03 +08:00
|
|
|
///
|
|
|
|
/// **Because this is an alias, not all its methods are listed here. See the [`Matrix`](crate::base::Matrix) type too.**
|
2021-04-12 16:34:15 +08:00
|
|
|
pub type Matrix3x2<T> = Matrix<T, U3, U2, ArrayStorage<T, 3, 2>>;
|
2018-09-10 01:27:33 +08:00
|
|
|
/// A stack-allocated, column-major, 4x2 matrix.
|
2020-11-21 00:46:03 +08:00
|
|
|
///
|
|
|
|
/// **Because this is an alias, not all its methods are listed here. See the [`Matrix`](crate::base::Matrix) type too.**
|
2021-04-12 16:34:15 +08:00
|
|
|
pub type Matrix4x2<T> = Matrix<T, U4, U2, ArrayStorage<T, 4, 2>>;
|
2018-09-10 01:27:33 +08:00
|
|
|
/// A stack-allocated, column-major, 5x2 matrix.
|
2020-11-21 00:46:03 +08:00
|
|
|
///
|
|
|
|
/// **Because this is an alias, not all its methods are listed here. See the [`Matrix`](crate::base::Matrix) type too.**
|
2021-04-12 16:34:15 +08:00
|
|
|
pub type Matrix5x2<T> = Matrix<T, U5, U2, ArrayStorage<T, 5, 2>>;
|
2018-09-10 01:27:33 +08:00
|
|
|
/// A stack-allocated, column-major, 6x2 matrix.
|
2020-11-21 00:46:03 +08:00
|
|
|
///
|
|
|
|
/// **Because this is an alias, not all its methods are listed here. See the [`Matrix`](crate::base::Matrix) type too.**
|
2021-04-12 16:34:15 +08:00
|
|
|
pub type Matrix6x2<T> = Matrix<T, U6, U2, ArrayStorage<T, 6, 2>>;
|
2016-12-05 05:44:42 +08:00
|
|
|
|
2018-09-10 01:27:33 +08:00
|
|
|
/// A stack-allocated, column-major, 4x3 matrix.
|
2020-11-21 00:46:03 +08:00
|
|
|
///
|
|
|
|
/// **Because this is an alias, not all its methods are listed here. See the [`Matrix`](crate::base::Matrix) type too.**
|
2021-04-12 16:34:15 +08:00
|
|
|
pub type Matrix4x3<T> = Matrix<T, U4, U3, ArrayStorage<T, 4, 3>>;
|
2018-09-10 01:27:33 +08:00
|
|
|
/// A stack-allocated, column-major, 5x3 matrix.
|
2020-11-21 00:46:03 +08:00
|
|
|
///
|
|
|
|
/// **Because this is an alias, not all its methods are listed here. See the [`Matrix`](crate::base::Matrix) type too.**
|
2021-04-12 16:34:15 +08:00
|
|
|
pub type Matrix5x3<T> = Matrix<T, U5, U3, ArrayStorage<T, 5, 3>>;
|
2018-09-10 01:27:33 +08:00
|
|
|
/// A stack-allocated, column-major, 6x3 matrix.
|
2020-11-21 00:46:03 +08:00
|
|
|
///
|
|
|
|
/// **Because this is an alias, not all its methods are listed here. See the [`Matrix`](crate::base::Matrix) type too.**
|
2021-04-12 16:34:15 +08:00
|
|
|
pub type Matrix6x3<T> = Matrix<T, U6, U3, ArrayStorage<T, 6, 3>>;
|
2016-12-05 05:44:42 +08:00
|
|
|
|
2018-09-10 01:27:33 +08:00
|
|
|
/// A stack-allocated, column-major, 5x4 matrix.
|
2020-11-21 00:46:03 +08:00
|
|
|
///
|
|
|
|
/// **Because this is an alias, not all its methods are listed here. See the [`Matrix`](crate::base::Matrix) type too.**
|
2021-04-12 16:34:15 +08:00
|
|
|
pub type Matrix5x4<T> = Matrix<T, U5, U4, ArrayStorage<T, 5, 4>>;
|
2018-09-10 01:27:33 +08:00
|
|
|
/// A stack-allocated, column-major, 6x4 matrix.
|
2020-11-21 00:46:03 +08:00
|
|
|
///
|
|
|
|
/// **Because this is an alias, not all its methods are listed here. See the [`Matrix`](crate::base::Matrix) type too.**
|
2021-04-12 16:34:15 +08:00
|
|
|
pub type Matrix6x4<T> = Matrix<T, U6, U4, ArrayStorage<T, 6, 4>>;
|
2016-12-05 05:44:42 +08:00
|
|
|
|
2018-09-10 01:27:33 +08:00
|
|
|
/// A stack-allocated, column-major, 6x5 matrix.
|
2020-11-21 00:46:03 +08:00
|
|
|
///
|
|
|
|
/// **Because this is an alias, not all its methods are listed here. See the [`Matrix`](crate::base::Matrix) type too.**
|
2021-04-12 16:34:15 +08:00
|
|
|
pub type Matrix6x5<T> = Matrix<T, U6, U5, ArrayStorage<T, 6, 5>>;
|
2016-12-05 05:44:42 +08:00
|
|
|
|
|
|
|
/*
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* Column vectors.
|
|
|
|
*
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
/// A dynamically sized column vector.
|
2018-05-19 23:15:15 +08:00
|
|
|
#[cfg(any(feature = "std", feature = "alloc"))]
|
2021-04-11 17:00:38 +08:00
|
|
|
pub type DVector<T> = Matrix<T, Dynamic, U1, VecStorage<T, Dynamic, U1>>;
|
2016-12-05 05:44:42 +08:00
|
|
|
|
2021-04-11 17:00:38 +08:00
|
|
|
/// An owned D-dimensional column vector.
|
|
|
|
pub type OVector<T, D> = Matrix<T, D, U1, Owned<T, D, U1>>;
|
2016-12-05 05:44:42 +08:00
|
|
|
/// A statically sized D-dimensional column vector.
|
2021-04-12 16:34:15 +08:00
|
|
|
pub type SVector<T, const D: usize> = Matrix<T, Const<D>, U1, ArrayStorage<T, D, 1>>; // Owned<T, Const<D>, U1>>;
|
2021-04-11 17:00:38 +08:00
|
|
|
|
|
|
|
/// An owned matrix column-major matrix with `R` rows and `C` columns.
|
|
|
|
///
|
|
|
|
/// **Because this is an alias, not all its methods are listed here. See the [`Matrix`](crate::base::Matrix) type too.**
|
|
|
|
#[deprecated(
|
|
|
|
note = "use SVector for a statically-sized matrix using integer dimensions, or OVector for an owned matrix using types as dimensions."
|
|
|
|
)]
|
2021-04-12 17:06:13 +08:00
|
|
|
pub type VectorN<T, D> = Matrix<T, D, U1, Owned<T, D, U1>>;
|
2016-12-05 05:44:42 +08:00
|
|
|
|
2017-02-13 01:17:09 +08:00
|
|
|
/// A stack-allocated, 1-dimensional column vector.
|
2021-04-12 16:34:15 +08:00
|
|
|
pub type Vector1<T> = Matrix<T, U1, U1, ArrayStorage<T, 1, 1>>;
|
2017-02-13 01:17:09 +08:00
|
|
|
/// A stack-allocated, 2-dimensional column vector.
|
2021-04-12 16:34:15 +08:00
|
|
|
pub type Vector2<T> = Matrix<T, U2, U1, ArrayStorage<T, 2, 1>>;
|
2017-02-13 01:17:09 +08:00
|
|
|
/// A stack-allocated, 3-dimensional column vector.
|
2021-04-12 16:34:15 +08:00
|
|
|
pub type Vector3<T> = Matrix<T, U3, U1, ArrayStorage<T, 3, 1>>;
|
2017-02-13 01:17:09 +08:00
|
|
|
/// A stack-allocated, 4-dimensional column vector.
|
2021-04-12 16:34:15 +08:00
|
|
|
pub type Vector4<T> = Matrix<T, U4, U1, ArrayStorage<T, 4, 1>>;
|
2017-02-13 01:17:09 +08:00
|
|
|
/// A stack-allocated, 5-dimensional column vector.
|
2021-04-12 16:34:15 +08:00
|
|
|
pub type Vector5<T> = Matrix<T, U5, U1, ArrayStorage<T, 5, 1>>;
|
2017-02-13 01:17:09 +08:00
|
|
|
/// A stack-allocated, 6-dimensional column vector.
|
2021-04-12 16:34:15 +08:00
|
|
|
pub type Vector6<T> = Matrix<T, U6, U1, ArrayStorage<T, 6, 1>>;
|
2016-12-05 05:44:42 +08:00
|
|
|
|
|
|
|
/*
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* Row vectors.
|
|
|
|
*
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
/// A dynamically sized row vector.
|
2018-05-19 23:15:15 +08:00
|
|
|
#[cfg(any(feature = "std", feature = "alloc"))]
|
2021-04-11 17:00:38 +08:00
|
|
|
pub type RowDVector<T> = Matrix<T, U1, Dynamic, VecStorage<T, U1, Dynamic>>;
|
|
|
|
|
|
|
|
/// An owned D-dimensional row vector.
|
|
|
|
pub type RowOVector<T, D> = Matrix<T, U1, D, Owned<T, U1, D>>;
|
2016-12-05 05:44:42 +08:00
|
|
|
|
|
|
|
/// A statically sized D-dimensional row vector.
|
2021-04-12 16:34:15 +08:00
|
|
|
pub type RowSVector<T, const D: usize> = Matrix<T, U1, Const<D>, ArrayStorage<T, 1, D>>;
|
2016-12-05 05:44:42 +08:00
|
|
|
|
2017-02-13 01:17:09 +08:00
|
|
|
/// A stack-allocated, 1-dimensional row vector.
|
2021-04-12 16:34:15 +08:00
|
|
|
pub type RowVector1<T> = Matrix<T, U1, U1, ArrayStorage<T, 1, 1>>;
|
2017-02-13 01:17:09 +08:00
|
|
|
/// A stack-allocated, 2-dimensional row vector.
|
2021-04-12 16:34:15 +08:00
|
|
|
pub type RowVector2<T> = Matrix<T, U1, U2, ArrayStorage<T, 1, 2>>;
|
2017-02-13 01:17:09 +08:00
|
|
|
/// A stack-allocated, 3-dimensional row vector.
|
2021-04-12 16:34:15 +08:00
|
|
|
pub type RowVector3<T> = Matrix<T, U1, U3, ArrayStorage<T, 1, 3>>;
|
2017-02-13 01:17:09 +08:00
|
|
|
/// A stack-allocated, 4-dimensional row vector.
|
2021-04-12 16:34:15 +08:00
|
|
|
pub type RowVector4<T> = Matrix<T, U1, U4, ArrayStorage<T, 1, 4>>;
|
2017-02-13 01:17:09 +08:00
|
|
|
/// A stack-allocated, 5-dimensional row vector.
|
2021-04-12 16:34:15 +08:00
|
|
|
pub type RowVector5<T> = Matrix<T, U1, U5, ArrayStorage<T, 1, 5>>;
|
2017-02-13 01:17:09 +08:00
|
|
|
/// A stack-allocated, 6-dimensional row vector.
|
2021-04-12 16:34:15 +08:00
|
|
|
pub type RowVector6<T> = Matrix<T, U1, U6, ArrayStorage<T, 1, 6>>;
|
2021-03-30 02:20:04 +08:00
|
|
|
|
|
|
|
/*
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* Unit Vector.
|
|
|
|
*
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
/// A stack-allocated, 1-dimensional unit vector.
|
2021-04-12 16:34:15 +08:00
|
|
|
pub type UnitVector1<T> = Unit<Matrix<T, U1, U1, ArrayStorage<T, 1, 1>>>;
|
2021-03-30 02:20:04 +08:00
|
|
|
/// A stack-allocated, 2-dimensional unit vector.
|
2021-04-12 16:34:15 +08:00
|
|
|
pub type UnitVector2<T> = Unit<Matrix<T, U2, U1, ArrayStorage<T, 2, 1>>>;
|
2021-03-30 02:20:04 +08:00
|
|
|
/// A stack-allocated, 3-dimensional unit vector.
|
2021-04-12 16:34:15 +08:00
|
|
|
pub type UnitVector3<T> = Unit<Matrix<T, U3, U1, ArrayStorage<T, 3, 1>>>;
|
2021-03-30 02:20:04 +08:00
|
|
|
/// A stack-allocated, 4-dimensional unit vector.
|
2021-04-12 16:34:15 +08:00
|
|
|
pub type UnitVector4<T> = Unit<Matrix<T, U4, U1, ArrayStorage<T, 4, 1>>>;
|
2021-03-30 02:20:04 +08:00
|
|
|
/// A stack-allocated, 5-dimensional unit vector.
|
2021-04-12 16:34:15 +08:00
|
|
|
pub type UnitVector5<T> = Unit<Matrix<T, U5, U1, ArrayStorage<T, 5, 1>>>;
|
2021-03-30 02:20:04 +08:00
|
|
|
/// A stack-allocated, 6-dimensional unit vector.
|
2021-04-12 16:34:15 +08:00
|
|
|
pub type UnitVector6<T> = Unit<Matrix<T, U6, U1, ArrayStorage<T, 6, 1>>>;
|