Loading...
Searching...
No Matches
Rectangle.java
Go to the documentation of this file.
1package com.navigine.idl.java;
2
14public final class Rectangle {
15
16
17 /*package*/ final float x;
18
19 /*package*/ final float y;
20
21 /*package*/ final float width;
22
23 /*package*/ final float height;
24
28 public Rectangle(
29 float x,
30 float y,
31 float width,
32 float height) {
33 this.x = x;
34 this.y = y;
35 this.width = width;
36 this.height = height;
37 }
38
44 public float getX() {
45 return x;
46 }
47
53 public float getY() {
54 return y;
55 }
56
62 public float getWidth() {
63 return width;
64 }
65
71 public float getHeight() {
72 return height;
73 }
74
75 @Override
76 public String toString() {
77 return "Rectangle{" +
78 "x=" + x +
79 "," + "y=" + y +
80 "," + "width=" + width +
81 "," + "height=" + height +
82 "}";
83 }
84
85}