Calculates the difference between 2 time line values

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

Syntax

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

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