Trait geo_nd::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<f64> for f64

§

type Vec2 = FArray<f64, 2>

§

type Vec3 = FArray<f64, 3>

§

type Vec4 = FArray<f64, 4>

source§

impl Vector3D<f32> for f32

§

type Vec2 = FArray<f32, 2>

§

type Vec3 = FArray<f32, 3>

§

type Vec4 = FArray<f32, 4>

Implementors§