naev 0.12.5
nmath.h
1/*
2 * See Licensing and Copyright notice in naev.h
3 */
4#pragma once
5
6int nmath_solve2Eq( double results[2], double a, double b, double c );
7double max3( double v1, double v2, double v3 );
8double min3( double v1, double v2, double v3 );
9void arrayShuffle( void **array );
10int rectOverlap( double x, double y, double w, double h, double x2, double y2,
11 double w2, double h2 );
12
13/* Easing. */
14double ease_SineInOut( double x );
15double ease_QuadraticInOut( double x );
16double ease_CubicInOut( double x );
double ease_SineInOut(double x)
Simple symmetric sine-based easing.
Definition nmath.c:104
double min3(double v1, double v2, double v3)
Returns the minimum of 3 values.
Definition nmath.c:56
void arrayShuffle(void **array)
Randomly sorts an array (array.h) of pointers in place with the Fisher-Yates shuffle.
Definition nmath.c:68
double max3(double v1, double v2, double v3)
Returns the maximum of 3 values.
Definition nmath.c:46
int nmath_solve2Eq(double results[2], double a, double b, double c)
Solves the equation: a * x^2 + b * x + c = 0.
Definition nmath.c:30
double ease_CubicInOut(double x)
Simple symmetric cubic easing.
Definition nmath.c:122
int rectOverlap(double x, double y, double w, double h, double x2, double y2, double w2, double h2)
Checks whether two rectangles overlap at any point.
Definition nmath.c:91
double ease_QuadraticInOut(double x)
Simple symmetric quadratic easing.
Definition nmath.c:112
static const double c[]
Definition rng.c:256