Table of Contents

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 Quaternion
typeName string
propertyName string

AssertUnitLength(Vector3, string, string)

[Conditional("DEBUG")]
public static void AssertUnitLength(Vector3 v, string typeName, string propertyName)

Parameters

v Vector3
typeName string
propertyName string

AssertValid(in MotorSettings, string)

[Conditional("DEBUG")]
public static void AssertValid(in MotorSettings settings, string typeName)

Parameters

settings MotorSettings
typeName string

AssertValid(in ServoSettings, in SpringSettings, string)

[Conditional("DEBUG")]
public static void AssertValid(in ServoSettings servoSettings, in SpringSettings springSettings, string typeName)

Parameters

servoSettings ServoSettings
springSettings SpringSettings
typeName string

AssertValid(in ServoSettings, string)

[Conditional("DEBUG")]
public static void AssertValid(in ServoSettings settings, string typeName)

Parameters

settings ServoSettings
typeName string

AssertValid(in SpringSettings, string)

[Conditional("DEBUG")]
public static void AssertValid(in SpringSettings settings, string typeName)

Parameters

settings SpringSettings
typeName string

IsFiniteNumber(float)

Checks if a value is a finite number- neither infinite nor NaN.

public static bool IsFiniteNumber(float value)

Parameters

value float

Value 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 float

Value 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 float

Value 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 float

Value 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 float

Value to check.

Returns

bool

True if the value is a finite number greater than zero and not NaN, false otherwise.