glm: Use doc comments instead of regular comment.

This commit is contained in:
Bruce Mitchener 2018-09-25 10:00:52 +07:00 committed by Sébastien Crozet
parent 2f03857017
commit c56ec720eb
1 changed files with 2 additions and 2 deletions

View File

@ -6,8 +6,8 @@ use aliases::{TVec2, TVec3, TVec4, TMat4};
///
/// # Parameters
/// * `center`: Specify the center of a picking region in window coordinates.
// * `delta`: Specify the width and height, respectively, of the picking region in window coordinates.
// * `viewport`: Rendering viewport
/// * `delta`: Specify the width and height, respectively, of the picking region in window coordinates.
/// * `viewport`: Rendering viewport
pub fn pick_matrix<N: Real>(center: &TVec2<N>, delta: &TVec2<N>, viewport: &TVec4<N>) -> TMat4<N> {
let shift = TVec3::new(
(viewport.z - (center.x - viewport.x) * na::convert(2.0)) / delta.x,