Most visited

Recently visited

ARPlaneAnchor

public class ARPlaneAnchor
extends ARAnchor

java.lang.Object
   ↳ com.viro.core.ARAnchor
     ↳ com.viro.core.ARPlaneAnchor


ARPlaneAnchor is a specialized ARAnchor that represents a detected plane in the real-world. You can use the ARNode corresponding to an ARPlane as a real-world surface on which to place virtual content.

Summary

Nested classes

enum ARPlaneAnchor.Alignment

Specifies the alignment of the ARPlaneAnchor with respect to gravity. 

Public methods

ARPlaneAnchor.Alignment getAlignment()

Get the ARPlaneAnchor.Alignment of the plane with respect to gravity.

Vector getCenter()

Get the center of this plane, in world coordinates.

Vector getExtent()

Get the extent of the plane in the X, Y, and Z directions.

List<Vector> getVertices()

Get the vertices composing the boundary of this polygonal plane.

Public methods

getAlignment

ARPlaneAnchor.Alignment getAlignment ()

Get the ARPlaneAnchor.Alignment of the plane with respect to gravity.

Returns
ARPlaneAnchor.Alignment The Alignment of the plane.

getCenter

Vector getCenter ()

Get the center of this plane, in world coordinates.

Returns
Vector The center as a Vector.

getExtent

Vector getExtent ()

Get the extent of the plane in the X, Y, and Z directions. This is the plane's estimated size.

Returns
Vector The extent of the plane as a Vector.

getVertices

List<Vector> getVertices ()

Get the vertices composing the boundary of this polygonal plane.

Returns
List<Vector> The boundary vertices in a List, which each vertex represented as a Vector.

Hooray!