Click or drag to resize

Algebra Class

Represents a set of mathematical (extension) methods.
Inheritance Hierarchy
SystemObject
  Syroot.MathsAlgebra

Namespace:  Syroot.Maths
Assembly:  Syroot.Maths (in Syroot.Maths.dll) Version: 1.5.0-alpha1
Syntax
public static class Algebra

The Algebra type exposes the following members.

Methods
  NameDescription
Public methodStatic memberClamp(Int32, Int32, Int32)
Limits the given value to lie between min and max.
Public methodStatic memberClamp(Single, Single, Single)
Limits the given value to lie between min and max.
Public methodStatic memberCos
Returns the cosine of the specified angle.
Public methodStatic memberDegreesToRadians
Converts the given angle in degrees into radians.
Public methodStatic memberLerp
Interpolates between the given values by the given factor. If the factor is 0f, a is returned, otherwise b, and for anything between, an interpolation by that factor is returned.
Public methodStatic memberNearlyEquals
Indicates whether the current Single is nearly equal to another Single.
Public methodStatic memberRadiansToDegrees
Converts the given angle in radians into degrees.
Public methodStatic memberSin
Returns the sine of the specified angle.
Public methodStatic memberTan
Returns the tangent of the specified angle.
Top
Fields
  NameDescription
Public fieldStatic memberPi
Represents the ratio of the circumference of a circle to its diameter, specified by the constant, π.
Public fieldStatic memberPiOver2
Represents the ratio of the circumference of a circle to its diameter, specified by the constant, π, divided two times.
Public fieldStatic memberPiOver4
Represents the ratio of the circumference of a circle to its diameter, specified by the constant, π, divided four times.
Public fieldStatic memberPiOver8
Represents the ratio of the circumference of a circle to its diameter, specified by the constant, π, divided eight times.
Top
See Also