type Vector2 = Vector2D<f32>;
A type-specific hint type that is valid for the type being exported.
Returns ExportInfo
given an optional typed hint.
Returns the ratio of x to y.
fn cubic_interpolate(self, b: Self, pre_a: Self, post_b: Self, t: f32) -> Self
[src]
Cubicly interpolates between this vector and b
using pre_a
and post_b
as handles, and returns the result at position t
. t
is in the range of 0.0 - 1.0, representing the amount of interpolation. Read more
Returns the vector rotated by angle
radians.
fn slide(self, normal: Self) -> Self
[src]
Returns the component of the vector along a plane defined by the given normal.
fn snapped(self, by: Self) -> Self
[src]
Returns the vector snapped to a grid with the given size.
Returns a perpendicular vector.