Point structures are made public
This commit is contained in:
parent
049b05fe3f
commit
516ba1a03d
1 changed files with 2 additions and 2 deletions
|
@ -24,11 +24,11 @@ use vector::*;
|
||||||
|
|
||||||
/// A point in 2-dimensional space.
|
/// A point in 2-dimensional space.
|
||||||
#[deriving(Eq, Zero, Clone)]
|
#[deriving(Eq, Zero, Clone)]
|
||||||
struct Point2<S> { x: S, y: S }
|
pub struct Point2<S> { x: S, y: S }
|
||||||
|
|
||||||
/// A point in 2-dimensional space.
|
/// A point in 2-dimensional space.
|
||||||
#[deriving(Eq, Zero, Clone)]
|
#[deriving(Eq, Zero, Clone)]
|
||||||
struct Point3<S> { x: S, y: S, z: S }
|
pub struct Point3<S> { x: S, y: S, z: S }
|
||||||
|
|
||||||
approx_eq!(impl<S> Point2<S>)
|
approx_eq!(impl<S> Point2<S>)
|
||||||
approx_eq!(impl<S> Point3<S>)
|
approx_eq!(impl<S> Point3<S>)
|
||||||
|
|
Loading…
Reference in a new issue