public interface Angle
Modifier and Type | Field and Description |
---|---|
static Pattern |
MEASUREMENT_PATTERN |
Modifier and Type | Method and Description |
---|---|
static Angle |
allocate(String inStringValue,
AngleUnits inDefaultUnits)
Function for converting a string representation of an angle into its appropriate object.
|
void |
scale(float inScalingFactor) |
float |
to(AngleUnits inUnits) |
int |
toInt(AngleUnits inUnits) |
static final Pattern MEASUREMENT_PATTERN
float to(AngleUnits inUnits)
int toInt(AngleUnits inUnits)
void scale(float inScalingFactor)
static Angle allocate(String inStringValue, AngleUnits inDefaultUnits)
inStringValue
- the string representation (ex: "10deg", "12rad", or "17.5")inDefaultUnits
- the units to use if the string representation is unit-less.
jataylor@hairyfatguy.com