Vector2f
- class vecked.Vector2f(x: TNumeric, y: TNumeric)[source]
A two-dimensional floating-point vector.
- add_vector2(length: Vector2[float | int]) Vector2f[source]
Returns the addition of this vector to another.
- clamp(minimum: float | None = None, maximum: float | None = None) Vector2f[source]
Returns a copy of this vector with each length clamped to
minimumandmaximum.
- inverse_lerp(a: Vector2f, b: Vector2f) Vector2f[source]
Gets the normalised distance of this vector from
ain the direction ofb.
- lerp(a: Vector2f, b: Vector2f) Vector2f[source]
Gets the value this normalised vector’s distance between
atowardsb.
- multiply_length(length: float | int) Vector2f[source]
Returns the multiplication of this vector by a length in both dimensions.