toxi.geom
Class PointCloud

java.lang.Object
  extended by toxi.geom.PointCloud
All Implemented Interfaces:
java.lang.Iterable<Vec3D>

public class PointCloud
extends java.lang.Object
implements java.lang.Iterable<Vec3D>


Constructor Summary
PointCloud()
           
PointCloud(int numPoints)
           
 
Method Summary
 PointCloud addAll(java.util.List<Vec3D> plist)
           
 PointCloud addPoint(Vec3D p)
           
 PointCloud applyMatrix(Matrix4x4 m)
           
 PointCloud center()
           
 PointCloud clear()
           
 PointCloud copy()
           
 AABB getBoundingBox()
           
 Sphere getBoundingSphere()
           
 Vec3D getCentroid()
           
 java.util.Iterator<Vec3D> iterator()
           
 boolean removePoint(Vec3D p)
           
 PointCloud updateBounds()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PointCloud

public PointCloud()

PointCloud

public PointCloud(int numPoints)
Method Detail

addAll

public PointCloud addAll(java.util.List<Vec3D> plist)

addPoint

public PointCloud addPoint(Vec3D p)

applyMatrix

public PointCloud applyMatrix(Matrix4x4 m)

center

public PointCloud center()

clear

public PointCloud clear()

copy

public PointCloud copy()

getBoundingBox

public AABB getBoundingBox()

getBoundingSphere

public Sphere getBoundingSphere()

getCentroid

public Vec3D getCentroid()

iterator

public java.util.Iterator<Vec3D> iterator()
Specified by:
iterator in interface java.lang.Iterable<Vec3D>

removePoint

public boolean removePoint(Vec3D p)

updateBounds

public PointCloud updateBounds()