com.graphbuilder.geom.Point2d Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of curvesapi Show documentation
Show all versions of curvesapi Show documentation
Implementation of various mathematical curves that define themselves over a set of control points. The API is written in Java. The curves supported are: Bezier, B-Spline, Cardinal Spline, Catmull-Rom Spline, Lagrange, Natural Cubic Spline, and NURBS.
package com.graphbuilder.geom;
import com.graphbuilder.curve.Point;
/**
The Point2d interface represents a two-dimensional point using double precision.
This interface is useful when writing general geometry algorithms.
*/
public interface Point2d extends Point {
/**
Sets the location of the point.
*/
public void setLocation(double x, double y);
/**
Returns the x-coordinate.
*/
public double getX();
/**
Returns the y-coordinate.
*/
public double getY();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy