APIdia Launch Partner
Top Description Fields Constructors Methods
com.badlogic.gdx.physics.box2d

public Class CircleShape

extends Shape
Class Inheritance
Imports
com.badlogic.gdx.math.Vector2

A circle shape.
Author
mzechner

Field Summary

Modifier and TypeField and Description
private final Vector2
private final float[]
tmp

Returns the position of the shape

Inherited from com.badlogic.gdx.physics.box2d.Shape:
addr

Constructor Summary

AccessConstructor and Description
public
protected
CircleShape(long addr)

Method Summary

Modifier and TypeMethod and Description
public Vector2
public Shape.Type
getType()

Implements abstract com.badlogic.gdx.physics.box2d.Shape.getType.

Get the type of this shape.

private native void
jniGetPosition(long addr, float[] position)

private native void
jniSetPosition(long addr, float positionX, float positionY)

private native long
public void
setPosition(Vector2 position)

Sets the position of the shape

Inherited from com.badlogic.gdx.physics.box2d.Shape:
disposegetChildCountgetRadiusjniGetTypesetRadius

Field Detail

positionback to summary
private final Vector2 position
tmpback to summary
private final float[] tmp

Returns the position of the shape

Constructor Detail

CircleShapeback to summary
public CircleShape()
CircleShapeback to summary
protected CircleShape(long addr)

Method Detail

getPositionback to summary
public Vector2 getPosition()
getTypeback to summary
public Shape.Type getType()

Implements abstract com.badlogic.gdx.physics.box2d.Shape.getType.

Doc from com.badlogic.gdx.physics.box2d.Shape.getType.

Get the type of this shape. You can use this to down cast to the concrete shape.

Annotations
@Override
jniGetPositionback to summary
private native void jniGetPosition(long addr, float[] position)
jniSetPositionback to summary
private native void jniSetPosition(long addr, float positionX, float positionY)
newCircleShapeback to summary
private native long newCircleShape()
setPositionback to summary
public void setPosition(Vector2 position)

Sets the position of the shape