pythagoras.f.XY Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pythagoras Show documentation
Show all versions of pythagoras Show documentation
Portable geometry routines, adapted from Apache Harmony geometry classes.
The newest version!
//
// Pythagoras - a collection of geometry classes
// http://github.com/samskivert/pythagoras
package pythagoras.f;
/**
* Defines an x/y coordinate. This is implemented by both {@code Point} and {@code Vector} so that
* APIs which require an x/y coordinate, but don't really want to mak the distinction between a
* translation vector versus a point in 2D space, can simply accept both.
*/
public interface XY
{
/** The x coordinate. */
float x ();
/** The y coordinate. */
float y ();
}