diff --git a/nalgebra-glm/src/gtc/constants.rs b/nalgebra-glm/src/gtc/constants.rs index 10f387a4..5e2e1b0d 100644 --- a/nalgebra-glm/src/gtc/constants.rs +++ b/nalgebra-glm/src/gtc/constants.rs @@ -1,11 +1,13 @@ use na::{self, Real}; -/// The euler constant. +/// The Euler constant. +/// +/// This is a shorthand alias for [`euler`](fn.euler.html). pub fn e() -> N { N::e() } -/// The euler constant. +/// The Euler constant. pub fn euler() -> N { N::e() } diff --git a/nalgebra-glm/src/gtc/quaternion.rs b/nalgebra-glm/src/gtc/quaternion.rs index 4487dbc0..15793605 100644 --- a/nalgebra-glm/src/gtc/quaternion.rs +++ b/nalgebra-glm/src/gtc/quaternion.rs @@ -50,19 +50,19 @@ pub fn quat_look_at_rh(direction: &TVec3, up: &TVec3) -> Qua { UnitQuaternion::look_at_rh(direction, up).unwrap() } -/// The "roll" euler angle of the quaternion `x` assumed to be normalized. +/// The "roll" Euler angle of the quaternion `x` assumed to be normalized. pub fn quat_roll(x: &Qua) -> N { // FIXME: optimize this. quat_euler_angles(x).z } -/// The "yaw" euler angle of the quaternion `x` assumed to be normalized. +/// The "yaw" Euler angle of the quaternion `x` assumed to be normalized. pub fn quat_yaw(x: &Qua) -> N { // FIXME: optimize this. quat_euler_angles(x).y } -/// The "pitch" euler angle of the quaternion `x` assumed to be normalized. +/// The "pitch" Euler angle of the quaternion `x` assumed to be normalized. pub fn quat_pitch(x: &Qua) -> N { // FIXME: optimize this. quat_euler_angles(x).x