MODULE v1.8.0

math

kn::math

Declared in kraken/math/Math.hpp

Reference

C++ API

fromPolar

function
Vec2 fromPolar(double rad, double radius)

No description in the source header.

clampVec

function
Vec2 clampVec(const Vec2 &vec, const Vec2 &min, const Vec2 &max)

No description in the source header.

lerp

function2 overloads
Vec2 lerp(const Vec2 &a, const Vec2 &b, double t)
double lerp(double a, double b, double t)

No description in the source header.

remap

function
double remap(double in_min, double in_max, double out_min, double out_max, double value)

No description in the source header.

toDegrees

function
double toDegrees(double angle)

No description in the source header.

toRadians

function
double toRadians(double angle)

No description in the source header.

dot

function
double dot(const Vec2 &a, const Vec2 &b)

No description in the source header.

cross

function
double cross(const Vec2 &a, const Vec2 &b)

No description in the source header.

angleBetween

function
double angleBetween(const Vec2 &a, const Vec2 &b)

No description in the source header.

moveToward

function
double moveToward(double current, double target, double maxStep)

No description in the source header.

Find your next step

Start typing to search the manual.