Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package cz.muni.fi.pb162.project.geometry;
- /**
- * Write a description of class Vertex2D here.
- *
- * @author (your name)
- * @version (a version number or a date)
- */
- public class Vertex2D
- {
- // instance variables - replace the example below with your own
- private double x;
- private double y;
- public double getX() {
- return x;
- }
- public double getY() {
- return y;
- }
- public void setX(double x) {
- this.x = x;
- }
- public void setY(double y) {
- this.y = y;
- }
- public String toString() {
- return "["+x+", "+y+"]";
- }
- }
Add Comment
Please, Sign In to add comment