-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
enhancementNew feature or requestNew feature or request
Description
This code was used to wrap the 0--360 longitude grid at the prime meridian. It was part of dephier.hpp (see https://github.com/KCallaghan/WTM/blob/midpoint/src/dephier.hpp). This wrapping is not yet fully implemented, so it is being stored over here for the time being
// The regular mod function allows negative numbers to stay negative. This mod
// function wraps negative numbers around. For instance, if a=-1 and n=100, then
// the result is 99.
static int ModFloor(int a, int n) {
return ((a % n) + n) % n;
}Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request