Package com.appliedrec.verid.core2
Class Size
- java.lang.Object
-
- com.appliedrec.verid.core2.Size
-
public class Size extends java.lang.Object
Size- Since:
- 1.0.0
-
-
Constructor Summary
Constructors Constructor Description Size(int width, int height)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
float
getAspectRatio()
int
hashCode()
boolean
isLandscape()
boolean
isPortrait()
-
-
-
Field Detail
-
width
public int width
Width- Since:
- 1.0.0
-
height
public int height
Height- Since:
- 1.0.0
-
ZERO
public static final Size ZERO
Size with width and height of 0.
-
-
Method Detail
-
getAspectRatio
public float getAspectRatio()
-
isLandscape
public boolean isLandscape()
-
isPortrait
public boolean isPortrait()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-