Trait vecmat::transform::Directional
source · [−]pub trait Directional<T>: Transform<T> {
fn apply_dir(&self, pos: T, dir: T) -> T;
fn apply_normal(&self, pos: T, normal: T) -> T;
}
Required Methods
Returns the result of the direction transformation at the specified position.
fn apply_normal(&self, pos: T, normal: T) -> T
fn apply_normal(&self, pos: T, normal: T) -> T
Returns the result of the normal transformation at the specified position.
If the transformation is conformal then the result is equal to apply_dir
.