From 8dd45f7355ef8bcc716966e88f08970aefae8cf6 Mon Sep 17 00:00:00 2001 From: Nicolas Silva Date: Fri, 21 Aug 2020 14:29:33 +0200 Subject: [PATCH 1/2] Improve the documentation of Transform3D::perspective. --- src/transform3d.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/transform3d.rs b/src/transform3d.rs index 92b814a8..2907fd55 100644 --- a/src/transform3d.rs +++ b/src/transform3d.rs @@ -425,7 +425,7 @@ where ) } - /// Create a simple perspective projection transform: + /// Create a simple perspective transform, projecting to the plane `z = -d`. /// /// ```text /// 1 0 0 0 @@ -433,6 +433,8 @@ where /// 0 0 1 -1/d /// 0 0 0 1 /// ``` + /// + /// See . pub fn perspective(d: T) -> Self where T: Neg + Div, From a8dfc570aeabc9c93d1ffe1b867f0dee22b53a13 Mon Sep 17 00:00:00 2001 From: Nicolas Silva Date: Fri, 21 Aug 2020 14:30:21 +0200 Subject: [PATCH 2/2] Version 0.22.1. --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 0f785476..59bf5b99 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "euclid" -version = "0.22.0" +version = "0.22.1" authors = ["The Servo Project Developers"] edition = "2018" description = "Geometry primitives"