Calculates the difference between 2 time line values

Namespace:  Equis.JanusToolkit.StandardTimeLines
Assembly:  Janus (in Janus.dll)

Syntax

C#
protected override double Difference(
	float val1,
	float val2
)

Parameters

val1
Type: System..::..Single
Value 1
val2
Type: System..::..Single
Value 2

Return Value

Absolute difference between Value 1 and Value 2

Remarks

This method is used by Set in conjucntion with the value of the parameter Tolerance to determine whether or not an update to the timeline should be sent to the remote peers Updates are sent when the value returned by Difference is greater than Tolerance

See Also