Most visited

Recently visited

ARPointCloud

public class ARPointCloud
extends Object

java.lang.Object
   ↳ com.viro.core.ARPointCloud


ARPointCloud contains a collection of points that the AR subsystem has detected in the user's real world.

Summary

Public methods

long[] getIds()

Returns a long array containing the ID of each point in the point cloud.

float[] getPoint(int i)

Helper method that when given an index i, returns the 4-element float array representing the point.

float[] getPoints()

Returns a float array containing the (x,y,z) position of each point in the point cloud plus a confidence value (from 0 to 1).

int size()

Returns the number of points in the ARPointCloud.

Public methods

getIds

long[] getIds ()

Returns a long array containing the ID of each point in the point cloud. These IDs are constant across frames, but their order in the returned array may change.

Returns
long[] A long array contained the identifiers for each point in the point cloud.

getPoint

float[] getPoint (int i)

Helper method that when given an index i, returns the 4-element float array representing the point.

Parameters
i int: Index of the point to return. May not be greater than total points returned by size().

Returns
float[] 4-element float array consisting of the x,y,z cloud point position, and confidence level.

getPoints

float[] getPoints ()

Returns a float array containing the (x,y,z) position of each point in the point cloud plus a confidence value (from 0 to 1). Each point therefore takes up 4 floats in the array. The points are arranged in no particular order.

Returns
float[] A single float array containing the position and confidence of each point.

size

int size ()

Returns the number of points in the ARPointCloud.

Returns
int the number of points in the ARPointCloud.

Hooray!