Calculates the difference between 2 time line values
Namespace:
Equis.JanusToolkit.StandardTimeLinesAssembly: Janus (in Janus.dll)
Syntax
C# |
---|
protected override double Difference( PositionHeadingVelocity val1, PositionHeadingVelocity val2 ) |
Parameters
- val1
- Type: Equis.JanusToolkit.StandardTimeLines..::..PositionHeadingVelocity
Value 1
- val2
- Type: Equis.JanusToolkit.StandardTimeLines..::..PositionHeadingVelocity
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