Skip to main content

TransformPoint

Trait TransformPoint 

Source
pub trait TransformPoint<T>
where T: Real,
{ // Required methods fn transform_point(&self, point: Vec3<T>) -> Vec3<T>; fn transform_vector(&self, vector: Vec3<T>) -> Vec3<T>; }
Expand description

Trait for types that can transform 3D points.

Required Methods§

Source

fn transform_point(&self, point: Vec3<T>) -> Vec3<T>

Transforms a point.

Source

fn transform_vector(&self, vector: Vec3<T>) -> Vec3<T>

Transforms a direction vector without translation.

Implementors§