| Constructor and Description |
|---|
Cylinder(Coordinate position,
float radius,
float height,
int color)
Creates a cylinder with specific radius, height, map and position.
|
Cylinder(float radius,
float height,
int color)
Creates a cylinder with a specific radius and height.
|
Cylinder(Vector3 position,
float radius,
float height,
int color)
Creates a cylinder with a specific radius, height and position.
|
| Modifier and Type | Method and Description |
|---|---|
com.mappedin.sdk.FocusPoints |
getPoints()
Returns the
FocusPoints of the cylinder, after the cylinder's current
transformations have been applied to it. |
Vector3 |
getPosition()
Returns the current center of the cylinder, in 3D space.
|
void |
setColor(int color,
float over)
Changes a cylinder's color over time
|
void |
setPosition(Coordinate newPosition,
float over)
Moves the cylinder to a certain point on a specific map, animated over a small time.
|
void |
setPosition(Vector3 newPosition,
float over)
Moves the cylinder over a set time to a specific position and makes it show on all Maps.
|
public Cylinder(Coordinate position, float radius, float height, int color)
Cylinder turnPoint = new Cylinder(coordinate, 1f, 3.1f, Color.WHITE);
mapView.addElement(turnPoint);
position - Coordinate Cylinder's initial position and mapradius - Cylinder's radius in metersheight - Cylinder's height in meterscolor - Cylinder's colorpublic Cylinder(Vector3 position, float radius, float height, int color)
position - Vector3 cylinder's initial positionradius - cylinder's radius in metersheight - cylinder's height in meterscolor - cylinder's colorpublic Cylinder(float radius,
float height,
int color)
radius - cylinder's radius in metersheight - cylinder's height in meterscolor - cylinder's colorpublic void setPosition(Coordinate newPosition, float over)
newPosition - Coordinateover - The animation timepublic void setPosition(Vector3 newPosition, float over)
newPosition - Vector3over - The animation timepublic void setColor(int color,
float over)
color - android.graphics.Colorover - The animation timepublic Vector3 getPosition()
Vector3public com.mappedin.sdk.FocusPoints getPoints()
FocusPoints of the cylinder, after the cylinder's current
transformations have been applied to it.FocusPoints