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

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

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!