Merge pull request #178 from bfops/eq

Points derive Eq.
This commit is contained in:
Dzmitry Malyshau 2015-02-21 16:34:24 -05:00
commit 1705cf74d0

View file

@ -27,11 +27,11 @@ use num::{BaseNum, BaseFloat, one, zero};
use vector::*;
/// A point in 2-dimensional space.
#[derive(PartialEq, Copy, Clone, Hash, RustcEncodable, RustcDecodable)]
#[derive(PartialEq, Eq, Copy, Clone, Hash, RustcEncodable, RustcDecodable)]
pub struct Point2<S> { pub x: S, pub y: S }
/// A point in 3-dimensional space.
#[derive(PartialEq, Copy, Clone, Hash, RustcEncodable, RustcDecodable)]
#[derive(PartialEq, Eq, Copy, Clone, Hash, RustcEncodable, RustcDecodable)]
pub struct Point3<S> { pub x: S, pub y: S, pub z: S }