j3d.polyViewer.vec3
Class PolarRangePoints
java.lang.Object
j3d.polyViewer.vec3.PolarRangePoints
- All Implemented Interfaces:
- Vec3FunctionInterface
public class PolarRangePoints
- extends java.lang.Object
- implements Vec3FunctionInterface
Field Summary |
static double |
pi
|
static double |
sqrt_2
|
static double |
twoPi
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
sqrt_2
public static final double sqrt_2
pi
public static final double pi
- See Also:
- Constant Field Values
twoPi
public static final double twoPi
- See Also:
- Constant Field Values
PolarRangePoints
public PolarRangePoints()
throws java.io.IOException
- Throws:
java.io.IOException
getRangePoints
public Points getRangePoints()
getRangePoints
public Points getRangePoints(double theta)
getPolarVec3
public Vec3 getPolarVec3(double r1,
double theta1,
double r2,
double theta2)
- This is called to get a 3D vertex from the range points.
The points are in strips. R1 increases the distance from
the points to center axis of revolution
r=f(z,theta) and z is = f(theta2)
let theta2 range from 0 to height of image
you need to build an array of radii like in
TopFrame.java
- Specified by:
getPolarVec3
in interface Vec3FunctionInterface
- Parameters:
r1
- radius scale of cylindertheta1
- sweep around centerr2
- unusedtheta2
- sweep up center
- Returns:
- a point in cylinder coordinates
getDeltaTheta
public double getDeltaTheta()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object