From f95426173a2ca620670af3611c1d847d9e956fe9 Mon Sep 17 00:00:00 2001 From: Brendan Zabarauskas Date: Sun, 8 Sep 2013 00:43:32 +1000 Subject: [PATCH] Rename Plane3->Plane --- src/cgmath/frustum.rs | 14 +++++++------- src/cgmath/plane.rs | 4 ++-- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/cgmath/frustum.rs b/src/cgmath/frustum.rs index bb7c89e..4268347 100644 --- a/src/cgmath/frustum.rs +++ b/src/cgmath/frustum.rs @@ -15,17 +15,17 @@ //! View frustum for visibility determination -use plane::Plane3; +use plane::Plane; use point::Point3; #[deriving(Clone, Eq)] pub struct Frustum { - left: Plane3, - right: Plane3, - bottom: Plane3, - top: Plane3, - near: Plane3, - far: Plane3, + left: Plane, + right: Plane, + bottom: Plane, + top: Plane, + near: Plane, + far: Plane, } #[deriving(Clone, Eq)] diff --git a/src/cgmath/plane.rs b/src/cgmath/plane.rs index c72bfd8..4b2aace 100644 --- a/src/cgmath/plane.rs +++ b/src/cgmath/plane.rs @@ -27,12 +27,12 @@ use std::fmt; /// - `normal.z`: corresponds to `C` in the plane equation /// - `distance`: the distance value, corresponding to `D` in the plane equation #[deriving(Clone, Eq)] -pub struct Plane3 { +pub struct Plane { normal: Vec3, distance: S, } -impl ToStr for Plane3 { +impl ToStr for Plane { fn to_str(&self) -> ~str { format!("{:f}x + {:f}y + {:f}z + {:f} = 0", self.normal.x,