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

public Class PointMapObject

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

@brief Represents 2D points on the map

Field Summary

Modifier and TypeField and Description
private final Vector2

Constructor Summary

AccessConstructor and Description
public
PointMapObject()

creates a 2D point map object at (0, 0)

public
PointMapObject(float
X coordinate
x
,
float
Y coordinate
y
)

Creates a 2D point map object

Method Summary

Modifier and TypeMethod and Description
public Vector2
getPoint()

Returns: 2D point on the map as Vector2

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

Field Detail

pointback to summary
private final Vector2 point

Constructor Detail

PointMapObjectback to summary
public PointMapObject()

creates a 2D point map object at (0, 0)

PointMapObjectback to summary
public PointMapObject(float x, float y)

Creates a 2D point map object

Parameters
x:float

X coordinate

y:float

Y coordinate

Method Detail

getPointback to summary
public Vector2 getPoint()
Returns:Vector2

2D point on the map as Vector2