public class PovWorld
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static double |
feet
feet = foot, a convienence attribute
|
static double |
foot
a foot = 12 inches
|
static double |
inch
inch = 1, our basic unit of measure
|
static double |
inches
inches = inch (a convienence field)
|
static double |
pi
Convienence copy of Math.PI
|
static double |
pi2
PI times 2, which is the number of radians in a circle
|
static double |
pih
Half PI, a quarter of a circle
|
static int |
X |
static int |
Y |
static int |
Z |
Constructor and Description |
---|
PovWorld() |
Modifier and Type | Method and Description |
---|---|
static double |
curve0(double _i) |
static double |
curve1(double _i) |
static double |
curve2(double _i) |
static double |
curve3(double _i) |
static double |
curve4(double _i) |
static double |
curve5(double _i) |
static double |
curve6(double _i) |
static double |
curve7(double _i) |
static double |
curve8(double _i) |
static double |
curve9(double _i) |
static double |
curve9a(double _i) |
double |
interpolate3(double from,
double to,
double i)
Move a float from 0-1 between two numbers
|
Point |
interpolate3(Point from,
Point to,
double i) |
double |
interpolate5(double sp0,
double sp1,
double spc,
double y0,
double y1)
given sp0, sp1, spc, and y0, y1, determine yc
|
Point |
parsePoint(java.lang.String s)
Given a String "<1,2,3>" return the parsed point
|
double |
vToRotY(Point p)
Given an x/z point, determine the y rotation
|
public static final double inch
public static final double inches
public static final double foot
public static final double feet
public static final double pi
public static final double pi2
public static final double pih
public static final int X
public static final int Y
public static final int Z
public static double curve0(double _i)
public static double curve1(double _i)
public static double curve2(double _i)
public static double curve3(double _i)
public static double curve4(double _i)
public static double curve5(double _i)
public static double curve6(double _i)
public static double curve7(double _i)
public static double curve8(double _i)
public static double curve9(double _i)
public static double curve9a(double _i)
public double interpolate5(double sp0, double sp1, double spc, double y0, double y1)
sp0
- The start of the source range pointsp1
- The end of the source range pointspc
- The current index into the source rangey0
- The start of the target rangey1
- The end of the target rangepublic double interpolate3(double from, double to, double i)
from
- The source "0" numberto
- The source "1" numberi
- The index into the rangepublic double vToRotY(Point p)
p
- public Point parsePoint(java.lang.String s)
s
- The String to parse