toxi.geom
Class PointCloud
java.lang.Object
toxi.geom.PointCloud
- All Implemented Interfaces:
- java.lang.Iterable<Vec3D>
public class PointCloud
- extends java.lang.Object
- implements java.lang.Iterable<Vec3D>
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PointCloud
public PointCloud()
PointCloud
public PointCloud(int numPoints)
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()