public class Dimensions extends Object implements android.os.Parcelable
| Modifier and Type | Field and Description |
|---|---|
static android.os.Parcelable.Creator<Dimensions> |
CREATOR |
static Dimensions |
EMPTY |
| Constructor and Description |
|---|
Dimensions(double width,
double height) |
| Modifier and Type | Method and Description |
|---|---|
int |
describeContents() |
boolean |
equals(Object o) |
double |
getHeight()
Returns height of rectangle in meters.
|
double |
getWidth()
Returns width of rectangle in meters
|
int |
hashCode() |
String |
toString() |
void |
writeToParcel(android.os.Parcel dest,
int flags) |
public static final Dimensions EMPTY
public static final android.os.Parcelable.Creator<Dimensions> CREATOR
public Dimensions(double width,
double height)
width - in metersheight - in meterspublic double getWidth()
public double getHeight()
public int describeContents()
describeContents in interface android.os.Parcelablepublic void writeToParcel(android.os.Parcel dest,
int flags)
writeToParcel in interface android.os.Parcelable