public class Rotation extends Translation
Modifier and Type | Field and Description |
---|---|
protected double |
degrees |
x, y
Constructor and Description |
---|
Rotation()
Creates a zeroed out rotation.
|
Rotation(double degrees)
Creates a rotation using the given degrees.
|
Rotation(double x,
double y,
double degrees)
Creates a rotation using the given axis and degrees.
|
Rotation(Rotation rotation)
Creates a copy of the given rotation.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
double |
getDegrees()
Returns the degree of rotation.
|
void |
setDegrees(double degrees)
Sets the degree of rotation.
|
public Rotation()
public Rotation(double degrees)
degrees
- the degree of rotationpublic Rotation(double x, double y, double degrees)
x
- the x-coordinate of the axis of rotationy
- the y-coordinate of the axis of rotationdegrees
- the degree of rotationpublic Rotation(Rotation rotation)
rotation
- the rotation to be copiedpublic boolean equals(Object obj)
equals
in class Translation
public double getDegrees()
public void setDegrees(double degrees)
degrees
- the degree of rotationCopyright © 2018. All rights reserved.