java.lang.Object
com.marginallyclever.convenience.Cylinder
- All Implemented Interfaces:
BoundingVolume
A cylinder with a radius and two end points. Makes a pill shape.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionjavax.vecmath.Vector3d
GetF()
javax.vecmath.Vector3d
GetN()
javax.vecmath.Vector3d
GetP1()
javax.vecmath.Vector3d
GetP2()
javax.vecmath.Vector3d
GetR()
float
void
SetP1
(javax.vecmath.Vector3d src) void
SetP2
(javax.vecmath.Vector3d src) void
setRadius
(float r) void
-
Constructor Details
-
Cylinder
public Cylinder()
-
-
Method Details
-
SetP1
public void SetP1(javax.vecmath.Vector3d src) -
SetP2
public void SetP2(javax.vecmath.Vector3d src) -
setRadius
public void setRadius(float r) -
getRadius
public float getRadius() -
GetP1
public javax.vecmath.Vector3d GetP1() -
GetP2
public javax.vecmath.Vector3d GetP2() -
GetN
public javax.vecmath.Vector3d GetN() -
GetF
public javax.vecmath.Vector3d GetF() -
GetR
public javax.vecmath.Vector3d GetR() -
UpdateVectors
public void UpdateVectors()
-