parent
c438ec0557
commit
27c131c2cb
@ -28,14 +28,14 @@ package com.iluwatar.spatialpartition;
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
public class Rect {
|
public class Rect {
|
||||||
int x;
|
double x;
|
||||||
int y;
|
double y;
|
||||||
int width;
|
double width;
|
||||||
int height;
|
double height;
|
||||||
|
|
||||||
//(x,y) - centre of rectangle
|
//(x,y) - centre of rectangle
|
||||||
|
|
||||||
Rect(int x, int y, int width, int height) {
|
Rect(double x, double y, double width, double height) {
|
||||||
this.x = x;
|
this.x = x;
|
||||||
this.y = y;
|
this.y = y;
|
||||||
this.width = width;
|
this.width = width;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user