Add some links to wikipedia pages

This commit is contained in:
Brendan Zabarauskas 2016-04-04 20:25:51 +10:00
parent 40a3ad3185
commit 019cac1f74

View file

@ -100,7 +100,9 @@ use approx::ApproxEq;
use array::{Array, ElementWise};
use num::{BaseNum, BaseFloat, PartialOrd};
/// Vectors that can be added together and multiplied by scalars.
/// Vectors that can be [added](http://mathworld.wolfram.com/VectorAddition.html)
/// together and [multiplied](https://en.wikipedia.org/wiki/Scalar_multiplication)
/// by scalars.
///
/// # Required operators
///
@ -523,7 +525,8 @@ impl<S: BaseNum> Vector4<S> {
}
}
/// Vectors that also have a dot (or inner) product.
/// Vectors that also have a [dot](https://en.wikipedia.org/wiki/Dot_product)
/// (or [inner](https://en.wikipedia.org/wiki/Inner_product_space)) product.
///
/// The dot product allows for the definition of other useful operations, like
/// finding the magnitude of a vector or normalizing it.