Landmark

public abstract class Landmark

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

Public Methods

static Landmark
create(float x, float y, float z)
Creates a landmark from x, y, z coordinates.
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.
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
abstract Optional<Float>
final String
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

public final boolean equals (Object o)

Parameters
o

public final int hashCode ()

public abstract Optional<Float> presence ()

public final String toString ()

public abstract Optional<Float> visibility ()

public abstract float x ()

public abstract float y ()

public abstract float z ()