public interface Parallelogram
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
contains(float x,
        float y)
Returns if the specified coordinates are contained within this  
Parallelogram | 
boolean | 
contains(Shape shape)
Returns if the specified  
Shape is contained within this
 one | 
float | 
getHeight()
Returns the height of the shape 
 | 
float | 
getMaxX()
Returns the greatest x coordinate of this shape 
 | 
float | 
getMaxY()
Returns the greatest y coordinate of this shape 
 | 
float | 
getRotation()
Returns the current rotation of the shape in degrees 
 | 
float | 
getWidth()
Returns the width of the shape 
 | 
float | 
getX()
Returns the x coordinate of the shape 
 | 
float | 
getY()
Returns the y coordinate of the shape 
 | 
boolean | 
intersects(float x,
          float y,
          float width,
          float height)
Returns if this shape intersects a specified rectangle dimensions 
 | 
boolean | 
intersects(Shape shape)
Returns if this shape intersects a specified  
Shape | 
boolean | 
intersectsLineSegment(LineSegment lineSegment)
Returns if this shape intersects a specified  
LineSegment | 
void | 
rotate(float degrees)
Rotates the shape around its top-left corner by the specified degrees
 adding to its existing rotation 
 | 
void | 
rotateAround(float centerX,
            float centerY,
            float degrees)
Rotates the shape around a center point by the specified degrees adding
 to its existing rotation 
 | 
void | 
setRotation(float degrees)
Sets the current rotation of the shape around its top-left corner
 
 Note: Rotates around the top-left corner 
 | 
void | 
setRotationAround(Point center,
                 float degrees)
Sets the current rotation of the shape around a center point 
 | 
float getX()
float getY()
float getWidth()
float getHeight()
float getMaxX()
float getMaxY()
float getRotation()
void setRotation(float degrees)
degrees - The rotation angle in degreesvoid setRotationAround(Point center, float degrees)
center - The center point to rotate arounddegrees - The rotation angle in degreesvoid rotate(float degrees)
degrees - The rotation in degreesvoid rotateAround(float centerX,
                  float centerY,
                  float degrees)
centerX - centerY - boolean intersectsLineSegment(LineSegment lineSegment)
LineSegmentlineSegment - The LineSegment to test for intersectionboolean intersects(Shape shape)
Shapeshape - The Shape to test for intersectionboolean intersects(float x,
                   float y,
                   float width,
                   float height)
x - The x coordinate of the rectangley - The y coordinate of the rectanglewidth - The width of the rectangleheight - The height of the rectangleboolean contains(Shape shape)
Shape is contained within this
 oneshape - The Shape to testboolean contains(float x,
                 float y)
Parallelogramx - The x coordinatey - The y coordinate