public class Ellipse
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
float |
height |
float |
width |
float |
x |
float |
y |
Constructor and Description |
---|
Ellipse()
Construct a new ellipse with all values set to zero
|
Ellipse(Ellipse ellipse) |
Ellipse(float x,
float y,
float width,
float height) |
Ellipse(Vector2 position,
float width,
float height) |
Modifier and Type | Method and Description |
---|---|
boolean |
contains(float x,
float y) |
boolean |
contains(Vector2 point) |
void |
set(Ellipse ellipse) |
void |
set(float x,
float y,
float width,
float height) |
Ellipse |
setPosition(float x,
float y)
Sets the x and y-coordinates of ellipse center
|
Ellipse |
setPosition(Vector2 position)
Sets the x and y-coordinates of ellipse center from vector
|
Ellipse |
setSize(float width,
float height)
Sets the width and height of this ellipse
|
public Ellipse()
public Ellipse(Ellipse ellipse)
public Ellipse(float x, float y, float width, float height)
public Ellipse(Vector2 position, float width, float height)
public boolean contains(float x, float y)
public boolean contains(Vector2 point)
public void set(float x, float y, float width, float height)
public void set(Ellipse ellipse)
public Ellipse setPosition(Vector2 position)
position
- The position vectorpublic Ellipse setPosition(float x, float y)
x
- The x-coordinatey
- The y-coordinatepublic Ellipse setSize(float width, float height)
width
- The widthheight
- The height