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
qQuaterniontypeNamestringpropertyNamestring
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
settingsMotorSettingstypeNamestring
AssertValid(in ServoSettings, in SpringSettings, string)
[Conditional("DEBUG")]
public static void AssertValid(in ServoSettings servoSettings, in SpringSettings springSettings, string typeName)
Parameters
servoSettingsServoSettingsspringSettingsSpringSettingstypeNamestring
AssertValid(in ServoSettings, string)
[Conditional("DEBUG")]
public static void AssertValid(in ServoSettings settings, string typeName)
Parameters
settingsServoSettingstypeNamestring
AssertValid(in SpringSettings, string)
[Conditional("DEBUG")]
public static void AssertValid(in SpringSettings settings, string typeName)
Parameters
settingsSpringSettingstypeNamestring
IsFiniteNumber(float)
Checks if a value is a finite number- neither infinite nor NaN.
public static bool IsFiniteNumber(float value)
Parameters
valuefloatValue 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
valuefloatValue 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
valuefloatValue 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
valuefloatValue 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
valuefloatValue to check.
Returns
- bool
True if the value is a finite number greater than zero and not NaN, false otherwise.