Class ConstraintChecker
- Namespace
- BepuPhysics.Constraints
- Assembly
- BepuPhysics.dll
public static class ConstraintChecker
- Inheritance
-
ConstraintChecker
- Inherited Members
Methods
AssertUnitLength(Quaternion, string, string)
[Conditional("DEBUG")]
public static void AssertUnitLength(Quaternion q, string typeName, string propertyName)
Parameters
q
QuaterniontypeName
stringpropertyName
string
AssertUnitLength(Vector3, string, string)
[Conditional("DEBUG")]
public static void AssertUnitLength(Vector3 v, string typeName, string propertyName)
Parameters
AssertValid(in MotorSettings, string)
[Conditional("DEBUG")]
public static void AssertValid(in MotorSettings settings, string typeName)
Parameters
settings
MotorSettingstypeName
string
AssertValid(in ServoSettings, in SpringSettings, string)
[Conditional("DEBUG")]
public static void AssertValid(in ServoSettings servoSettings, in SpringSettings springSettings, string typeName)
Parameters
servoSettings
ServoSettingsspringSettings
SpringSettingstypeName
string
AssertValid(in ServoSettings, string)
[Conditional("DEBUG")]
public static void AssertValid(in ServoSettings settings, string typeName)
Parameters
settings
ServoSettingstypeName
string
AssertValid(in SpringSettings, string)
[Conditional("DEBUG")]
public static void AssertValid(in SpringSettings settings, string typeName)
Parameters
settings
SpringSettingstypeName
string
IsFiniteNumber(float)
Checks if a value is a finite number- neither infinite nor NaN.
public static bool IsFiniteNumber(float value)
Parameters
value
floatValue to check.
Returns
- bool
True if the value is neither infinite nor NaN, false otherwise.
IsNegativeNumber(float)
Checks if a value is a finite value less than zero and not NaN.
public static bool IsNegativeNumber(float value)
Parameters
value
floatValue to check.
Returns
- bool
True if the value is a finite number less than zero and not NaN, false otherwise.
IsNonnegativeNumber(float)
Checks if a value is a finite value greater than or equal to zero and not NaN.
public static bool IsNonnegativeNumber(float value)
Parameters
value
floatValue to check.
Returns
- bool
True if the value is a finite number greater than or equal to zero and not NaN, false otherwise.
IsNonpositiveNumber(float)
Checks if a value is a finite value less than or equal to zero and not NaN.
public static bool IsNonpositiveNumber(float value)
Parameters
value
floatValue to check.
Returns
- bool
True if the value is a finite number less than or equal to zero and not NaN, false otherwise.
IsPositiveNumber(float)
Checks if a value is a finite value greater than zero and not NaN.
public static bool IsPositiveNumber(float value)
Parameters
value
floatValue to check.
Returns
- bool
True if the value is a finite number greater than zero and not NaN, false otherwise.