Added dots at end of some phrases.

This commit is contained in:
Dimitri Sabadie 2017-03-21 00:06:06 +01:00
parent 530895993f
commit 06bf49eee5
3 changed files with 8 additions and 8 deletions

View file

@ -74,13 +74,13 @@ impl Into<Simdf32x4> for Quaternion<f32> {
impl<S: BaseFloat> Quaternion<S> {
/// Construct a new quaternion from one scalar component and three
/// imaginary components
/// imaginary components.
#[inline]
pub fn new(w: S, xi: S, yj: S, zk: S) -> Quaternion<S> {
Quaternion::from_sv(w, Vector3::new(xi, yj, zk))
}
/// Construct a new quaternion from a scalar and a vector
/// Construct a new quaternion from a scalar and a vector.
#[inline]
pub fn from_sv(s: S, v: Vector3<S>) -> Quaternion<S> {
Quaternion { s: s, v: v }
@ -559,7 +559,7 @@ impl<S: BaseFloat> ApproxEq for Quaternion<S> {
}
impl<S: BaseFloat> From<Quaternion<S>> for Matrix3<S> {
/// Convert the quaternion to a 3 x 3 rotation matrix
/// Convert the quaternion to a 3 x 3 rotation matrix.
fn from(quat: Quaternion<S>) -> Matrix3<S> {
let x2 = quat.v.x + quat.v.x;
let y2 = quat.v.y + quat.v.y;
@ -584,7 +584,7 @@ impl<S: BaseFloat> From<Quaternion<S>> for Matrix3<S> {
}
impl<S: BaseFloat> From<Quaternion<S>> for Matrix4<S> {
/// Convert the quaternion to a 4 x 4 rotation matrix
/// Convert the quaternion to a 4 x 4 rotation matrix.
fn from(quat: Quaternion<S>) -> Matrix4<S> {
let x2 = quat.v.x + quat.v.x;
let y2 = quat.v.y + quat.v.y;

View file

@ -34,7 +34,7 @@ pub trait Rotation<P: EuclideanSpace>: Sized + Copy + One where
Self: ApproxEq<Epsilon = <P as EuclideanSpace>::Scalar>,
<P as EuclideanSpace>::Scalar: BaseFloat,
{
/// Create a rotation to a given direction with an 'up' vector
/// Create a rotation to a given direction with an 'up' vector.
fn look_at(dir: P::Diff, up: P::Diff) -> Self;
/// Create a shortest rotation to transform vector 'a' into 'b'.

View file

@ -110,7 +110,7 @@ macro_rules! impl_vector {
}
impl<S: NumCast + Copy> $VectorN<S> {
/// Component-wise casting to another type
/// Component-wise casting to another type.
#[inline]
pub fn cast<T: NumCast>(&self) -> $VectorN<T> {
$VectorN { $($field: NumCast::from(self.$field).unwrap()),+ }
@ -318,7 +318,7 @@ macro_rules! impl_vector_default {
}
impl<S: NumCast + Copy> $VectorN<S> {
/// Component-wise casting to another type
/// Component-wise casting to another type.
#[inline]
pub fn cast<T: NumCast>(&self) -> $VectorN<T> {
$VectorN { $($field: NumCast::from(self.$field).unwrap()),+ }
@ -665,7 +665,7 @@ impl<S: BaseNum> Vector4<S> {
Vector3::new(self.x, self.y, self.z)
}
/// Create a `Vector3`, dropping the nth element
/// Create a `Vector3`, dropping the nth element.
#[inline]
pub fn truncate_n(&self, n: isize) -> Vector3<S> {
match n {