Skip to content

Updated to latest Rust #48

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 24, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/cgmath/angle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ use std::num::{One, one, Zero, zero, cast};

use approx::ApproxEq;

#[deriving(Clone, Eq, Ord, IterBytes)] pub struct Rad<S> { s: S }
#[deriving(Clone, Eq, Ord, IterBytes)] pub struct Deg<S> { s: S }
#[deriving(Clone, Eq, Ord, Hash)] pub struct Rad<S> { s: S }
#[deriving(Clone, Eq, Ord, Hash)] pub struct Deg<S> { s: S }

#[inline] pub fn rad<S: Float>(s: S) -> Rad<S> { Rad { s: s } }
#[inline] pub fn deg<S: Float>(s: S) -> Deg<S> { Deg { s: s } }
Expand Down
4 changes: 2 additions & 2 deletions src/cgmath/point.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ use array::*;
use vector::*;

/// A point in 2-dimensional space.
#[deriving(Eq, Clone, IterBytes)]
#[deriving(Eq, Clone, Hash)]
pub struct Point2<S> { x: S, y: S }

/// A point in 3-dimensional space.
#[deriving(Eq, Clone, IterBytes)]
#[deriving(Eq, Clone, Hash)]
pub struct Point3<S> { x: S, y: S, z: S }


Expand Down
2 changes: 1 addition & 1 deletion src/cgmath/vector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ pub trait Vector
// Utility macro for generating associated functions for the vectors
macro_rules! vec(
($Self:ident <$S:ident> { $($field:ident),+ }, $n:expr) => (
#[deriving(Eq, Clone, IterBytes)]
#[deriving(Eq, Clone, Hash)]
pub struct $Self<S> { $($field: S),+ }

impl<$S: Primitive> $Self<$S> {
Expand Down