We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2894075 commit 8dd45f7Copy full SHA for 8dd45f7
src/transform3d.rs
@@ -425,14 +425,16 @@ where
425
)
426
}
427
428
- /// Create a simple perspective projection transform:
+ /// Create a simple perspective transform, projecting to the plane `z = -d`.
429
///
430
/// ```text
431
/// 1 0 0 0
432
/// 0 1 0 0
433
/// 0 0 1 -1/d
434
/// 0 0 0 1
435
/// ```
436
+ ///
437
+ /// See <https://drafts.csswg.org/css-transforms-2/#PerspectiveDefined>.
438
pub fn perspective(d: T) -> Self
439
where
440
T: Neg<Output = T> + Div<Output = T>,
0 commit comments