Points derive Eq.

This commit is contained in:
Ben Foppa 2015-02-21 14:50:00 -05:00
parent 136dc458be
commit 1d9fc87f60

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 }