seika.math

Math

Generic math functions

Properties

None.


Signals

None.


Methods

lerp(source: float, destination: float, amount: float) -> float:

Linearly interpolate between two values.


Vector2

Engine representation of a two-dimensional vector.

Properties

x : float

X coordinate.

y : float

Y coordinate.


Signals

None.


Methods

dot_product(value: seika.math.Vector2) -> float:

Returns the dot product of two Vector2 items.

lerp(source: seika.math.Vector2, destination: seika.math.Vector2, amount: float) -> seika.math.Vector2:

Returns the linearly interpolated value of two points.


Static functions that return specific values

ZERO() -> Vector2(0.0, 0.0):
LEFT() -> Vector2(-1.0, 0.0):
RIGHT() -> Vector2(0.0, 1.0):
UP() -> Vector2(0.0, -1.0):
DOWN() -> Vector2(0.0, 1.0):

Vector3

Engine representation of a two dimensional vector.

Properties

x : float

X coordinate.

y : float

Y coordinate.

z : float

Z coordinate.


Signals

None.


Methods

None.


Rect2

Engine representation of a rectangle vector.

Properties

x : float

X coordinate.

y : float

Y coordinate.

w : float

Rectangle's width.

h : float

Rectangle's height.


Signals

None.


Methods

None.