pub trait Point: Copy + Clonewhere
Self: Array<Element = Self::Scalar> + Add<Self::Vector, Output = Self> + Sub<Self, Output = Self::Vector> + Mul<Self::Scalar, Output = Self> + Div<Self::Scalar, Output = Self> + Rem<Self::Scalar, Output = Self>,{
type Scalar: BaseNum;
type Vector: Vector<Scalar = Self::Scalar>;
// Required methods
fn origin() -> Self;
fn from_vec(v: Self::Vector) -> Self;
fn to_vec(self) -> Self::Vector;
fn dot(self, v: Self::Vector) -> Self::Scalar;
}
Expand description
Specifies the numeric operations for point types.