Add operator explanation to docs

Co-Authored-By: tpdickso <tpdickso@uwaterloo.ca>
This commit is contained in:
Sébastien Crozet 2019-03-15 10:50:47 -04:00 committed by GitHub
parent 2a2e9d7f8e
commit a2c0a453d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 26 additions and 0 deletions

View File

@ -257,6 +257,8 @@ where DefaultAllocator: Allocator<N, D>
/// Transform the given point by this isometry. /// Transform the given point by this isometry.
/// ///
/// This is the same as the multiplication `self * pt`.
///
/// # Example /// # Example
/// ///
/// ``` /// ```
@ -278,6 +280,8 @@ where DefaultAllocator: Allocator<N, D>
/// Transform the given vector by this isometry, ignoring the translation /// Transform the given vector by this isometry, ignoring the translation
/// component of the isometry. /// component of the isometry.
/// ///
/// This is the same as the multiplication `self * v`.
///
/// # Example /// # Example
/// ///
/// ``` /// ```

View File

@ -1008,6 +1008,8 @@ impl<N: Real> UnitQuaternion<N> {
/// Rotate a point by this unit quaternion. /// Rotate a point by this unit quaternion.
/// ///
/// This is the same as the multiplication `self * pt`.
///
/// # Example /// # Example
/// ///
/// ``` /// ```
@ -1026,6 +1028,8 @@ impl<N: Real> UnitQuaternion<N> {
/// Rotate a vector by this unit quaternion. /// Rotate a vector by this unit quaternion.
/// ///
/// This is the same as the multiplication `self * v`.
///
/// # Example /// # Example
/// ///
/// ``` /// ```

View File

@ -358,6 +358,8 @@ where DefaultAllocator: Allocator<N, D, D> + Allocator<N, D>
{ {
/// Rotate the given point. /// Rotate the given point.
/// ///
/// This is the same as the multiplication `self * pt`.
///
/// # Example /// # Example
/// ``` /// ```
/// # #[macro_use] extern crate approx; /// # #[macro_use] extern crate approx;
@ -375,6 +377,8 @@ where DefaultAllocator: Allocator<N, D, D> + Allocator<N, D>
/// Rotate the given vector. /// Rotate the given vector.
/// ///
/// This is the same as the multiplication `self * v`.
///
/// # Example /// # Example
/// ``` /// ```
/// # #[macro_use] extern crate approx; /// # #[macro_use] extern crate approx;

View File

@ -241,6 +241,8 @@ where
/// Transform the given point by this similarity. /// Transform the given point by this similarity.
/// ///
/// This is the same as the multiplication `self * pt`.
///
/// # Example /// # Example
/// ``` /// ```
/// # #[macro_use] extern crate approx; /// # #[macro_use] extern crate approx;
@ -260,6 +262,8 @@ where
/// Transform the given vector by this similarity, ignoring the translational /// Transform the given vector by this similarity, ignoring the translational
/// component. /// component.
/// ///
/// This is the same as the multiplication `self * t`.
///
/// # Example /// # Example
/// ``` /// ```
/// # #[macro_use] extern crate approx; /// # #[macro_use] extern crate approx;

View File

@ -464,6 +464,8 @@ where
+ Allocator<N, D>, + Allocator<N, D>,
{ {
/// Transform the given point by this transformation. /// Transform the given point by this transformation.
///
/// This is the same as the multiplication `self * pt`.
#[inline] #[inline]
pub fn transform_point(&self, pt: &Point<N, D>) -> Point<N, D> { pub fn transform_point(&self, pt: &Point<N, D>) -> Point<N, D> {
self * pt self * pt
@ -471,6 +473,8 @@ where
/// Transform the given vector by this transformation, ignoring the /// Transform the given vector by this transformation, ignoring the
/// translational component of the transformation. /// translational component of the transformation.
///
/// This is the same as the multiplication `self * v`.
#[inline] #[inline]
pub fn transform_vector(&self, v: &VectorN<N, D>) -> VectorN<N, D> { pub fn transform_vector(&self, v: &VectorN<N, D>) -> VectorN<N, D> {
self * v self * v

View File

@ -197,6 +197,8 @@ where DefaultAllocator: Allocator<N, D>
{ {
/// Translate the given point. /// Translate the given point.
/// ///
/// This is the same as the multiplication `self * pt`.
///
/// # Example /// # Example
/// ``` /// ```
/// # use nalgebra::{Translation3, Point3}; /// # use nalgebra::{Translation3, Point3};

View File

@ -254,6 +254,8 @@ impl<N: Real> UnitComplex<N> {
/// Rotate the given point by this unit complex number. /// Rotate the given point by this unit complex number.
/// ///
/// This is the same as the multiplication `self * pt`.
///
/// # Example /// # Example
/// ``` /// ```
/// # #[macro_use] extern crate approx; /// # #[macro_use] extern crate approx;
@ -270,6 +272,8 @@ impl<N: Real> UnitComplex<N> {
/// Rotate the given vector by this unit complex number. /// Rotate the given vector by this unit complex number.
/// ///
/// This is the same as the multiplication `self * v`.
///
/// # Example /// # Example
/// ``` /// ```
/// # #[macro_use] extern crate approx; /// # #[macro_use] extern crate approx;