public class Angle extends Object
PS1 instructions: do NOT change this class.
Constructor | Description |
---|---|
Angle(int degrees,
int minutes,
int seconds,
CardinalDirection direction) |
Make a new angle of degrees degrees plus minutes arc minutes plus seconds
arc seconds.
|
Modifier and Type | Method | Description |
---|---|---|
int |
degrees() |
|
CardinalDirection |
direction() |
|
boolean |
equals(Object obj) |
|
int |
hashCode() |
|
int |
minutes() |
|
int |
seconds() |
|
String |
toString() |
public Angle(int degrees, int minutes, int seconds, CardinalDirection direction)
Integer.MAX_VALUE
degrees total.degrees
- degrees of arc, must be nonnegativeminutes
- minutes of arc, must be nonnegativeseconds
- seconds of arc, must be nonnegativedirection
- cardinal direction of the anglepublic int degrees()
public int minutes()
public int seconds()
public CardinalDirection direction()