 | MathUtilsFloatEquals Method (Vector2F, Vector2F, Single) |
Checks if the passed vector's components are "equal". I.e. checking if the difference between the components of the two is smaller than the passed delta.
Namespace: Slash.Math.UtilsAssembly: Slash.Math (in Slash.Math.dll) Version: 1.0.6018.40177
Syntaxpublic static bool FloatEquals(
Vector2F value1,
Vector2F value2,
float delta
)
Public Shared Function FloatEquals (
value1 As Vector2F,
value2 As Vector2F,
delta As Single
) As Boolean
public:
static bool FloatEquals(
Vector2F value1,
Vector2F value2,
float delta
)
static member FloatEquals :
value1 : Vector2F *
value2 : Vector2F *
delta : float32 -> bool
Parameters
- value1
- Type: Slash.Math.Algebra.VectorsVector2F
The first vector. - value2
- Type: Slash.Math.Algebra.VectorsVector2F
The second vector. - delta
- Type: SystemSingle
The floating point tolerance.
Return Value
Type:
Boolean True if the values are "equal", false otherwise.
See Also