Remove comma separated inheritance lists
This commit is contained in:
parent
1a55784c81
commit
b6049b28e2
6 changed files with 18 additions and 18 deletions
18
src/angle.rs
18
src/angle.rs
|
@ -10,15 +10,15 @@ use vec::Vec3;
|
|||
/**
|
||||
* The base trait for anglular units
|
||||
*/
|
||||
pub trait Angle<T>: Add<self,self>,
|
||||
Sub<self,self>,
|
||||
Mul<T,self>,
|
||||
Div<T,self>,
|
||||
// Div<self,T>, // TODO: not sure how to implement this, or if it is even possible...
|
||||
Modulo<T,self>,
|
||||
// Modulo<self,T>, // TODO: not sure how to implement this, or if it is even possible...
|
||||
Neg<self>,
|
||||
Eq, Ord {
|
||||
pub trait Angle<T>: Add<self,self>
|
||||
Sub<self,self>
|
||||
Mul<T,self>
|
||||
Div<T,self>
|
||||
// Div<self,T> // TODO: not sure how to implement this, or if it is even possible...
|
||||
Modulo<T,self>
|
||||
// Modulo<self,T> // TODO: not sure how to implement this, or if it is even possible...
|
||||
Neg<self>
|
||||
Eq Ord {
|
||||
static pure fn full_turn() -> self;
|
||||
static pure fn half_turn() -> self;
|
||||
static pure fn quadrant() -> self;
|
||||
|
|
|
@ -13,7 +13,7 @@ use num::kinds::{Float, Number};
|
|||
/**
|
||||
* A generic color trait.
|
||||
*/
|
||||
pub trait Color<T>: Dimensional<T>, ToPtr<T>, Eq {
|
||||
pub trait Color<T>: Dimensional<T> ToPtr<T> Eq {
|
||||
/**
|
||||
* # Return value
|
||||
*
|
||||
|
|
|
@ -26,7 +26,7 @@ use vec::{NumericVector, Vec2, Vec3, Vec4};
|
|||
* floating point type and have the same number of dimensions as the
|
||||
* number of rows and columns in the matrix.
|
||||
*/
|
||||
pub trait Matrix<T,V>: Dimensional<V>, ToPtr<T>, Eq, Neg<self> {
|
||||
pub trait Matrix<T,V>: Dimensional<V> ToPtr<T> Eq Neg<self> {
|
||||
/**
|
||||
* # Return value
|
||||
*
|
||||
|
|
|
@ -4,7 +4,7 @@ use std::cmp::FuzzyEq;
|
|||
use num::conv::NumConv;
|
||||
|
||||
|
||||
pub trait Number: Eq, Num, NumConv, Ord {
|
||||
pub trait Number: Eq Num NumConv Ord {
|
||||
/**
|
||||
* Construct a new number by casting a number the the static method's
|
||||
* enclosing type
|
||||
|
@ -232,7 +232,7 @@ pub impl i64: Integer {}
|
|||
pub impl int: Integer {}
|
||||
|
||||
|
||||
pub trait Float: Number, FuzzyEq {
|
||||
pub trait Float: Number FuzzyEq {
|
||||
pure fn to_float() -> float;
|
||||
static pure fn from_float(n: float) -> self;
|
||||
|
||||
|
|
|
@ -34,7 +34,7 @@ use vec::Vec3;
|
|||
* * `V3` - The 3-dimensional vector type that will containin the imaginary
|
||||
* components of the quaternion.
|
||||
*/
|
||||
pub trait Quaternion<T,V3>: Dimensional<T>, ToPtr<T>, Eq, Neg<self> {
|
||||
pub trait Quaternion<T,V3>: Dimensional<T> ToPtr<T> Eq Neg<self> {
|
||||
static pure fn from_axis_angle<A:Angle<T>>(axis: &Vec3<T>, theta: A) -> self;
|
||||
|
||||
/**
|
||||
|
|
|
@ -18,7 +18,7 @@ use num::kinds::Number;
|
|||
* * `T` - The type of the components. This is intended to support boolean,
|
||||
* integer, unsigned integer, and floating point types.
|
||||
*/
|
||||
pub trait Vector<T>: Dimensional<T>, ToPtr<T>, Eq {
|
||||
pub trait Vector<T>: Dimensional<T> ToPtr<T> Eq {
|
||||
/**
|
||||
* Construct the vector from a single value, copying it to each component
|
||||
*/
|
||||
|
@ -61,7 +61,7 @@ pub trait Vector4<T>: Vector<T> {
|
|||
/**
|
||||
* A vector with numeric components
|
||||
*/
|
||||
pub trait NumericVector<T>: Vector<T>, Neg<self> {
|
||||
pub trait NumericVector<T>: Vector<T> Neg<self> {
|
||||
/**
|
||||
* The standard basis vector
|
||||
*
|
||||
|
@ -119,7 +119,7 @@ pub trait NumericVector<T>: Vector<T>, Neg<self> {
|
|||
/**
|
||||
* A mutable vector with numeric components
|
||||
*/
|
||||
pub trait MutableNumericVector<T>: MutableVector<&self/T>, NumericVector<T> {
|
||||
pub trait MutableNumericVector<T>: MutableVector<&self/T> NumericVector<T> {
|
||||
/**
|
||||
* Negate the vector
|
||||
*/
|
||||
|
@ -257,7 +257,7 @@ pub trait EuclideanVector<T>: NumericVector<T> {
|
|||
*
|
||||
* * `T` - The type of the components. This should be a floating point type.
|
||||
*/
|
||||
pub trait MutableEuclideanVector<T>: MutableNumericVector<&self/T>,
|
||||
pub trait MutableEuclideanVector<T>: MutableNumericVector<&self/T>
|
||||
EuclideanVector<T> {
|
||||
/**
|
||||
* Normalize the vector
|
||||
|
|
Loading…
Reference in a new issue