toxi.geom
Class ZAxisCylinder

java.lang.Object
  extended by toxi.geom.AxisAlignedCylinder
      extended by toxi.geom.ZAxisCylinder
All Implemented Interfaces:
Shape3D

public class ZAxisCylinder
extends AxisAlignedCylinder


Constructor Summary
ZAxisCylinder(ReadonlyVec3D pos, float radius, float length)
           
 
Method Summary
 boolean containsPoint(ReadonlyVec3D p)
          Checks if the given point is inside the cylinder.
 Vec3D.Axis getMajorAxis()
           
 
Methods inherited from class toxi.geom.AxisAlignedCylinder
getLength, getPosition, getRadius, setLength, setPosition, setRadius, toMesh, toMesh, toMesh
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZAxisCylinder

public ZAxisCylinder(ReadonlyVec3D pos,
                     float radius,
                     float length)
Method Detail

containsPoint

public boolean containsPoint(ReadonlyVec3D p)
Description copied from class: AxisAlignedCylinder
Checks if the given point is inside the cylinder.

Specified by:
containsPoint in interface Shape3D
Specified by:
containsPoint in class AxisAlignedCylinder
Returns:
true, if inside

getMajorAxis

public Vec3D.Axis getMajorAxis()
Specified by:
getMajorAxis in class AxisAlignedCylinder
Returns:
the cylinder's orientation axis