Package xal.tools.math
Class TrigStuff
java.lang.Object
xal.tools.math.TrigStuff
general purpose trig stuff not found elsewhere
-
Method Summary
Modifier and TypeMethodDescriptionstatic double
unwrap
(double y, double yIn) this method shifts the first argument by a multiple of 2*PI to produce the nearest point to another specified point
-
Method Details
-
unwrap
public static double unwrap(double y, double yIn) this method shifts the first argument by a multiple of 2*PI to produce the nearest point to another specified point- Parameters:
y
- = input numberyIn
- = number to get the input close to (within 2pi)
-