CoriEngine
Loading...
Searching...
No Matches
Cori::Math Namespace Reference

Anything custom connected to math is in this namespace. More...

Classes

class  Function
 Mathematical function/expression. @detials Uses ExprTK internally, refer here https://github.com/ArashPartow/exprtk to see what it can parse.
By default, have some contents defined:
PI, alias: "pi"
Epsilon, alias: "epsilon"
Infinity, alias: "inf"
Euler's number, alias: "e". More...

Concepts

concept  IsNumber
 Checks if T is a number.

Functions

template<typename T>
int32_t Sign (T val)
 Returns a sign of a number.

Detailed Description

Anything custom connected to math is in this namespace.

Function Documentation

◆ Sign()

template<typename T>
int32_t Cori::Math::Sign ( T val)

Returns a sign of a number.

Parameters
valInput.
Returns
Returns 1 if input is > 0, 0 if input is 0, and -1 if input is < 0.

Definition at line 14 of file Sign.hpp.