Vector2i

class vecked.Vector2i(x: TNumeric, y: TNumeric)[source]
add_vector2f(length: Vector2[float]) Vector2f[source]

Returns the addition of this vector to another.

add_vector2i(length: Vector2[int]) Vector2i[source]

Returns the addition of this vector to another.

multiple_vector2f(length: Vector2[float]) Vector2f[source]

Returns the multiplication of this vector by a floating-point two-dimensional vector.

multiply_float(length: float) Vector2f[source]

Returns the multiplication of this vector by a floating-point length in both dimensions.

multiply_int(length: int) Vector2i[source]

Returns the multiplication of this vector by an integer length in both dimensions.

multiply_vector2i(length: Vector2[int]) Vector2i[source]

Returns the multiplication of this vector by an integer two-dimensional vector.

reflect_vertically(y: int = 0) Vector2i[source]

Reflects this vector across a horizontal mirror.

subtract_vector2f(length: Vector2[float]) Vector2f[source]

Returns the subtraction of a floating-point two-dimensional vector from this.

subtract_vector2i(length: Vector2[int]) Vector2i[source]

Returns the subtraction of an integer two-dimensional vector from this.