Point

Trait Point 

Source
pub trait Point:
    Add<Self, Output = Self>
    + Sub<Self, Output = Self>
    + Mul<Self::Scalar, Output = Self>
    + Copy {
    type Scalar: Float;

    const DIM: usize;
}
Expand description

Core point abstraction used across the library.

Point models a fixed-dimension vector space element. Curve evaluation only relies on these operations; geometry helpers are provided via capability traits like PointIndex and PointNorm.

Required Associated Constants§

Source

const DIM: usize

Compile-time dimension of the point.

Required Associated Types§

Source

type Scalar: Float

Scalar type used for interpolation and arithmetic.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<T, const N: usize> Point for PointN<T, N>
where T: Float,

Source§

const DIM: usize = N

Source§

type Scalar = T