UtilQuadratic Class |
Namespace: Demo3D.Common
public class Quadratic
The UtilQuadratic type exposes the following members.
| Name | Description | |
|---|---|---|
| UtilQuadratic |
Construct the quadratic equation "a x^2 + b x + c = 0".
|
| Name | Description | |
|---|---|---|
| Discriminant |
Returns the discriminant of the quadratic equation.
| |
| HasRealSolutions |
Does the equation have real solutions?
|
| Name | Description | |
|---|---|---|
| Solve |
Solve the equation.
If HasRealSolutions is false, then SolutionLower and SolutionUpper will be invalid. |
| Name | Description | |
|---|---|---|
| a |
Coefficient of the x^2 component.
| |
| b |
Coefficient of the x component.
| |
| c |
Constant component.
| |
| SolutionLower |
The smaller of the two solutions once Solve has been called, and HasRealSolutions is true.
| |
| SolutionUpper |
The larger of the two solutions once Solve has been called, and HasRealSolutions is true.
|