glm: Use doc comments instead of regular comment.
This commit is contained in:
parent
2f03857017
commit
c56ec720eb
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user