GreysitoErPutoAmo

Java - Objetos: Vertices

Feb 22nd, 2015
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.38 KB | None | 0 0
  1. package rectangulos;
  2.  
  3. public class Vertices {
  4.    
  5.     public Vertices(float n1, float n2){
  6.         this.x = n1;
  7.         this.y = n2;
  8.     }
  9.    
  10.     public float x = 0.0f;
  11.     public float y = 0.0f;
  12.        
  13.     public float getX() {
  14.             return x;
  15.     }
  16.     public void setX(float x) {
  17.             this.x = x;
  18.     }
  19.     public float getY() {
  20.             return y;
  21.     }
  22.     public void setY(float y) {
  23.             this.y = y;
  24.     }
Add Comment
Please, Sign In to add comment