glm docs: Explain that TVec is a TMat.

This commit is contained in:
Bruce Mitchener 2018-10-06 21:22:32 +07:00 committed by Sébastien Crozet
parent 0c5cc0b65e
commit 890286293f
1 changed files with 9 additions and 0 deletions

View File

@ -7,6 +7,10 @@ use na::{MatrixMN, VectorN,
/// A matrix with components of type `N`. It has `R` rows, and `C` columns. /// A matrix with components of type `N`. It has `R` rows, and `C` columns.
/// ///
/// In this library, vectors, represented as [`TVec`](type.TVec.html) and
/// friends, are also matrices. Operations that operate on a matrix will
/// also work on a vector.
///
/// # See also: /// # See also:
/// ///
/// * [`TMat2`](type.TMat2.html) /// * [`TMat2`](type.TMat2.html)
@ -21,11 +25,16 @@ use na::{MatrixMN, VectorN,
/// * [`TMat4x2`](type.TMat4x2.html) /// * [`TMat4x2`](type.TMat4x2.html)
/// * [`TMat4x3`](type.TMat4x3.html) /// * [`TMat4x3`](type.TMat4x3.html)
/// * [`TMat4x4`](type.TMat4x4.html) /// * [`TMat4x4`](type.TMat4x4.html)
/// * [`TVec`](type.TVec.html)
pub type TMat<N, R, C> = MatrixMN<N, R, C>; pub type TMat<N, R, C> = MatrixMN<N, R, C>;
/// A column vector with components of type `N`. It has `D` rows (and one column). /// A column vector with components of type `N`. It has `D` rows (and one column).
/// ///
/// In this library, vectors are represented as a single column matrix, so
/// operations on [`TMat`](type.TMat.html) are also valid on vectors.
///
/// # See also: /// # See also:
/// ///
/// * [`TMat`](type.TMat.html)
/// * [`TVec1`](type.TVec1.html) /// * [`TVec1`](type.TVec1.html)
/// * [`TVec2`](type.TVec2.html) /// * [`TVec2`](type.TVec2.html)
/// * [`TVec3`](type.TVec3.html) /// * [`TVec3`](type.TVec3.html)