Package codedraw
Class Point2D
java.lang.Object
codedraw.Point2D
This class represents a 2D point.
It is only used in
Matrix2D.multiply(Point2D)
and Matrix2D.multiply(double, double)
.-
Constructor Summary
-
Method Summary
-
Constructor Details
-
Point2D
public Point2D(double x, double y) Creates a Point from the two arguments. This class is only used inMatrix2D.multiply(Point2D)
andMatrix2D.multiply(double, double)
.- Parameters:
x
- the x component of the point.y
- the y component of the point.
-
-
Method Details
-
getX
public double getX()The x component of the point.- Returns:
- the x component.
-
getY
public double getY()The y component of the point.- Returns:
- the y component.
-
equals
-
hashCode
-
toString
-