Math
Engine representation of color.
Properties
PI: float
Constant value of 3.14159
.
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
y: float
Methods
dot_product(value: crescent_api.Vector2) -> float:
Returns the dot product of two Vector2 items.
lerp(source: crescent_api.Vector2, destination: crescent_api.Vector2, amount: float) -> crescent_api.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):
Rect2
Engine representation of a rectangle.
Properties
x : float
X coordinate.
y : float
Y coordinate.
w : float
Rectangle's width.
h : float
Rectangle's height.
Methods
None.