 |
MathUtilsIsSame(Vector2, Vector2, Single) Method |
Returns true if the difference between the components in Vector2 are smaller than the specified tolerance.
Namespace: Ab4d.SharpEngine.UtilitiesAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 5.0.1075+bc537c8d217949260b11f66ee86aefa6456ac517
Syntaxpublic static bool IsSame(
in Vector2 position1,
in Vector2 position2,
float tolerance
)
Parameters
- position1 Vector2
- first Vector2
- position2 Vector2
- second Vector2
- tolerance Single
- float value that specifies how big the difference between values can be so that the values are considered the same
Return Value
Booleantrue if the difference between the components in Vector2 are smaller than the specified tolerance
See Also