C# Class Vertesaur.Periodic.PeriodicOperations

Provides operations that can be performed on values and ranges that have a periodic nature (wrap around).
显示文件 Open project: aarondandy/vertesaur Class Usage Examples

Public Methods

Method Description
PeriodicOperations ( double periodStart, double periodLength ) : System

Constructs a new periodic operator from the given start and with the given length.

Private Methods

Method Description
CalculateMidpoint ( double rangeStart, double rangeEnd ) : double
CodeContractInvariants ( ) : void
Contains ( double rangeStart, double rangeEnd, double testValue ) : bool
Contains ( double startA, double endA, double startB, double endB ) : bool
Distance ( double a, double b ) : double
Distance ( double rangeStart, double rangeEnd, double singleValue ) : double
Fix ( double value ) : double
FixExcludingEnd ( double value ) : double
Intersects ( double rangeStart, double rangeEnd, double testValue ) : bool
Intersects ( double startA, double endA, double startB, double endB ) : bool
Magnitude ( double rangeStart, double rangeEnd ) : double

Method Details

PeriodicOperations() public method

Constructs a new periodic operator from the given start and with the given length.
public PeriodicOperations ( double periodStart, double periodLength ) : System
periodStart double The start value of the period.
periodLength double The length of the range.
return System