Trait Vector3D

Source
pub trait Vector3D<Scalar: Float> {
    type Vec2: Vector<Scalar, 2>;
    type Vec3: Vector<Scalar, 3>;
    type Vec4: Vector<Scalar, 4>;
}
Expand description

This is probably a temporary trait used until SIMD supports Geometry3D and Geometry2D

The Vector3D trait describes vectors that may be used for 3D geometry

Required Associated Types§

Source

type Vec2: Vector<Scalar, 2>

The type of a 2D vector

Source

type Vec3: Vector<Scalar, 3>

The type of a 3D vector

Source

type Vec4: Vector<Scalar, 4>

The type of a 3D vector with an additional ‘1’ expected in its extra element

Implementations on Foreign Types§

Source§

impl Vector3D<f32> for f32

Source§

impl Vector3D<f64> for f64

Implementors§