Landmark represents a point in 3D space with x, y, z coordinates. The landmark coordinates are in meters. z represents the landmark depth, and the smaller the value the closer the world landmark is to the camera.
Public Constructors
|
Landmark()
|
Public Methods
| static Landmark |
create(float x, float y, float z)
Creates a landmark from x, y, z coordinates.
|
| static Landmark | |
| static Landmark |
createFromProto(LandmarkProto.Landmark landmarkProto)
Creates a landmark from a landmark proto.
|
| static List<Landmark> |
createListFromProto(LandmarkProto.LandmarkList landmarkListProto)
Creates a list of landmarks from a
ERROR(/LandmarkList). |
| final boolean | |
| final int |
hashCode()
|
| abstract Optional<Float> |
presence()
|
| final String |
toString()
|
| abstract Optional<Float> | |
| abstract float |
x()
|
| abstract float |
y()
|
| abstract float |
z()
|
Inherited Methods
Public Constructors
public Landmark ()
Public Methods
public static Landmark create (float x, float y, float z)
Creates a landmark from x, y, z coordinates.
Parameters
| x | |
|---|---|
| y | |
| z |
public static Landmark create (float x, float y, float z, Optional<Float> visibility, Optional<Float> presence)
Creates a normalized landmark from x, y, z coordinates with optional visibility and presence.
Parameters
| x | |
|---|---|
| y | |
| z | |
| visibility | |
| presence |
public static Landmark createFromProto (LandmarkProto.Landmark landmarkProto)
Creates a landmark from a landmark proto.
Parameters
| landmarkProto |
|---|
public static List<Landmark> createListFromProto (LandmarkProto.LandmarkList landmarkListProto)
Creates a list of landmarks from a ERROR(/LandmarkList).
Parameters
| landmarkListProto |
|---|