Trait pathfinder_geometry::vector::IntoVector2F

source ·
pub trait IntoVector2F {
    // Required method
    fn into_vector_2f(self) -> Vector2F;
}
Expand description

Either a scalar or a Vector2F.

Scalars will be automatically splatted (i.e. x becomes vec2f(x, x)).

Be judicious with the use of this trait. Only use it if it will aid readability without the potential to introduce bugs.

Required Methods§

Implementations on Foreign Types§

source§

impl IntoVector2F for f32

Implementors§