Rename Plane3->Plane

This commit is contained in:
Brendan Zabarauskas 2013-09-08 00:43:32 +10:00
parent df9c66d1bb
commit f95426173a
2 changed files with 9 additions and 9 deletions

View file

@ -15,17 +15,17 @@
//! View frustum for visibility determination //! View frustum for visibility determination
use plane::Plane3; use plane::Plane;
use point::Point3; use point::Point3;
#[deriving(Clone, Eq)] #[deriving(Clone, Eq)]
pub struct Frustum<S> { pub struct Frustum<S> {
left: Plane3<S>, left: Plane<S>,
right: Plane3<S>, right: Plane<S>,
bottom: Plane3<S>, bottom: Plane<S>,
top: Plane3<S>, top: Plane<S>,
near: Plane3<S>, near: Plane<S>,
far: Plane3<S>, far: Plane<S>,
} }
#[deriving(Clone, Eq)] #[deriving(Clone, Eq)]

View file

@ -27,12 +27,12 @@ use std::fmt;
/// - `normal.z`: corresponds to `C` in the plane equation /// - `normal.z`: corresponds to `C` in the plane equation
/// - `distance`: the distance value, corresponding to `D` in the plane equation /// - `distance`: the distance value, corresponding to `D` in the plane equation
#[deriving(Clone, Eq)] #[deriving(Clone, Eq)]
pub struct Plane3<S> { pub struct Plane<S> {
normal: Vec3<S>, normal: Vec3<S>,
distance: S, distance: S,
} }
impl<S: Clone + fmt::Float> ToStr for Plane3<S> { impl<S: Clone + fmt::Float> ToStr for Plane<S> {
fn to_str(&self) -> ~str { fn to_str(&self) -> ~str {
format!("{:f}x + {:f}y + {:f}z + {:f} = 0", format!("{:f}x + {:f}y + {:f}z + {:f} = 0",
self.normal.x, self.normal.x,