Class Anchor2D
Package com.here.sdk.core
Class Anchor2D
- java.lang.Object
-
- com.here.sdk.core.Anchor2D
-
public final class Anchor2D extends java.lang.ObjectRepresents a point in a rectangle as a ratio of this rectangle's width and height.
-
-
Field Summary
Fields Modifier and Type Field Description doublehorizontalDefines the x axis where the left is 0, the right is 1 and the middle is 0.5.doubleverticalDefines the y axis where the top is 0, the bottom is 1 and the middle is 0.5.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)inthashCode()
-
-
-
Constructor Detail
-
Anchor2D
public Anchor2D()
Creates a new instance of an Anchor2D with the default parameters
-
Anchor2D
public Anchor2D(double horizontal, double vertical)Creates a new instance of an Anchor2D.
- Parameters:
horizontal-Defines the x axis where the left is 0, the right is 1 and the middle is 0.5.
vertical-Defines the y axis where the top is 0, the bottom is 1 and the middle is 0.5.
-
-