APIdia Launch Partner
Top Description Fields Constructors Methods
com.badlogic.gdx.maps.objects

public Class EllipseMapObject

extends MapObject
Class Inheritance
Imports
com.badlogic.gdx.maps.MapObject, com.badlogic.gdx.math.Ellipse

@brief Represents Ellipse map objects.

Field Summary

Modifier and TypeField and Description
private Ellipse

Constructor Summary

AccessConstructor and Description
public
EllipseMapObject()

Creates an Ellipse object whose lower left corner is at (0, 0) with width=1 and height=1

public
EllipseMapObject(float
X coordinate
x
,
float
Y coordinate
y
,
float
Width in pixels
width
,
float
Height in pixels
height
)

Creates an Ellipse object with the given X and Y coordinates along with a specified width and height.

Method Summary

Modifier and TypeMethod and Description
public Ellipse
getEllipse()

Returns: ellipse shape

Inherited from com.badlogic.gdx.maps.MapObject:
getColorgetNamegetOpacitygetPropertiesisVisiblesetColorsetNamesetOpacitysetVisible

Field Detail

ellipseback to summary
private Ellipse ellipse

Constructor Detail

EllipseMapObjectback to summary
public EllipseMapObject()

Creates an Ellipse object whose lower left corner is at (0, 0) with width=1 and height=1

EllipseMapObjectback to summary
public EllipseMapObject(float x, float y, float width, float height)

Creates an Ellipse object with the given X and Y coordinates along with a specified width and height.

Parameters
x:float

X coordinate

y:float

Y coordinate

width:float

Width in pixels

height:float

Height in pixels

Method Detail

getEllipseback to summary
public Ellipse getEllipse()
Returns:Ellipse

ellipse shape