com.b3dgs.lionengine.geometry.impl
Class GeometryFactory

java.lang.Object
  extended by com.b3dgs.lionengine.geometry.impl.GeometryFactory
All Implemented Interfaces:
Geometry

public final class GeometryFactory
extends java.lang.Object
implements Geometry


Field Summary
 
Fields inherited from interface com.b3dgs.lionengine.Geometry
GEOMETRY
 
Method Summary
 Coordinate2D createCoordinate2D(float x, float y)
          Create float coordinates.
 Point2D createPoint2D(int x, int y)
          Create integer coordinates.
static GeometryFactory getInstance()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static GeometryFactory getInstance()
Returns:
singleton.

createPoint2D

public Point2D createPoint2D(int x,
                             int y)
Description copied from interface: Geometry
Create integer coordinates.

Specified by:
createPoint2D in interface Geometry
Parameters:
x - abscissa.
y - ordinate.
Returns:
created coordinates.

createCoordinate2D

public Coordinate2D createCoordinate2D(float x,
                                       float y)
Description copied from interface: Geometry
Create float coordinates.

Specified by:
createCoordinate2D in interface Geometry
Parameters:
x - abscissa.
y - ordinate.
Returns:
created coordinates.