Click or drag to resize

UtilSnapTo(Double, Double, Double) Method

Return the value between [v1,v2] that is closest to 'p'

Namespace: Demo3D.Common
Assembly: Demo3D.Common (in Demo3D.Common.dll) Version: 19.01.00
Syntax
C#
public static double SnapTo(
	double p,
	double v1,
	double v2
)

Parameters

p  Double
Value to test
v1  Double
Lower bound
v2  Double
Upper bound

Return Value

Double
Closest value
See Also