Spelunx Cavern SDK
 
Loading...
Searching...
No Matches
Spelunx.MathsUtil Class Reference

Utility class for maths functions. More...

Collaboration diagram for Spelunx.MathsUtil:
Collaboration graph

Static Public Member Functions

static List< float > SolveQuadraticEquation (float a, float b, float c)
 Solve and quadratic equation in the form ax^2 + bx + c = 0.
 

Detailed Description

Utility class for maths functions.

Definition at line 9 of file MathsUtil.cs.

Member Function Documentation

◆ SolveQuadraticEquation()

static List< float > Spelunx.MathsUtil.SolveQuadraticEquation ( float  a,
float  b,
float  c 
)
inlinestatic

Solve and quadratic equation in the form ax^2 + bx + c = 0.

Parameters
aCoefficient of x^2.
bCoefficient of x.
cConstant c.
Returns
Returns an empty list if the equation has no solutions. Returns a list with 1 element if the equation has 1 solution. Returns a list with 2 elements if the equation has 2 solution.

Definition at line 23 of file MathsUtil.cs.


The documentation for this class was generated from the following file: