Click or drag to resize

UtilSnapUpperTo(Double, Double, Double) Method

If given number is EQ(Double, Double, Double) to t but greater than t, make it t

Namespace: Demo3D.Common
Assembly: Demo3D.Common (in Demo3D.Common.dll) Version: 19.01.00
Syntax
C#
public static double SnapUpperTo(
	double v,
	double t,
	double e
)

Parameters

v  Double
Number to test
t  Double
Number to test against
e  Double
Epsilon used in comparison

Return Value

Double
Snapped number
See Also