Package curve.u
Class U
java.lang.Object
curve.u.U
-
Field Summary
Modifier and TypeFieldDescription(package private) static boolean
todostatic boolean
todostatic boolean
todo(package private) Board
board(package private) DotsCanvas
dc(package private) static boolean
debug(package private) static boolean
debugDist(package private) static boolean
debugDrag(package private) static boolean
debugDraw(package private) static boolean
debugKey(package private) static boolean
debugMotion(package private) static boolean
debugMouse(package private) static boolean
debugplerp(package private) static boolean
debugSelect(package private) static boolean
debugSetup(package private) static final int
dimstatic boolean
todostatic boolean
todo(package private) Interpreter
ipstatic boolean
todo(package private) static final int
pad(package private) static int
panel dimstatic boolean
todostatic boolean
todostatic boolean
todostatic boolean
todostatic boolean
todo(package private) static boolean
showLabelsstatic boolean
todostatic boolean
todostatic boolean
todo(package private) static double
some default 't' numbers(package private) static double
some default 't' numbers(package private) Tr
t(package private) static String
zz -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
add boardstatic void
todoboolean
addLineToArray
(Line line, ArrayList<Line> al) add line to arraystatic void
animate()
todostatic double
bigger
(double x1, double x2) biggerboolean
checkConnectedLines
(Line line, ArrayList<Line> al, int limit, Line prevLine) checkConnectedLinesboolean
checkLowerConnectedLines
(Line line, ArrayList<Line> al, int limit, Line prevLine) checkLowerConnectedLinesboolean
checkUpperConnectedLines
(Line line, ArrayList<Line> al, int limit, Line prevLine) checkUpperConnectedLinesstatic void
connect()
todostatic void
controls()
todostatic double
dist
(double x1, double y1, double x2, double y2) how close are these two curves?void
Pass-through that takes care of [t] incrementing(package private) void
drawAxes
(Graphics g, String horizontalLabel, double hs, double he, String verticalLabel, double vs, double ve) draws a set of labeled axes(package private) static void
drawBoundingBox
(Graphics g, DPoint[] p, Tr t) Draw a bounding boxvoid
endCurveMoulding
(CubicLine curve) todostatic double
geDiststatic void
ghost()
todostatic void
labels()
todostatic double
lerp
(double x1, double x2, double t) lerp(package private) static void
log(package private) void
log array list(package private) static void
loop()
loopstatic void
mayReset()
todostatic void
mould()
todovoid
mouldCurve
(CubicLine curve, int mx, int my) todo(package private) static void
switch drawing over to the next dim*dim areastatic void
todostatic void
todostatic void
todostatic void
todostatic void
noGhost()
todostatic void
noLabels()
todo(package private) static void
noLoop()
noLoopstatic void
todo(package private) static void
todostatic void
todostatic void
todostatic void
todostatic void
noReset()
todostatic void
todostatic void
noSpan()
todo(package private) static void
todostatic void
pause()
todostatic void
play()
todostatic DPoint
plerpstatic void
plerp Precise method which guarantees v = v1 when t = 1.static void
todo(package private) void
postDraw()
Runs after drawFunction is called,
if this is an animate cp.(package private) void
preDraw()
Runs before drawFunction is called, if this is an animate cp.static void
todostatic void
reorder()
todoreturnAllConnectedLines
(Line line) returnAllConnectedLinesreturnAllSelectedEndPoints(package private) void
setupDefaultCubicPolystatic void
simplify()
todostatic double
smaller
(double x1, double x2) smallerstatic void
span()
todovoid
startCurveMoulding
(CubicLine curve, double t) todoboolean
testCurveMoulding
(CubicLine curve, int mx, int my) todostatic void
todostatic void
todostatic void
todostatic void
todostatic void
todostatic void
todostatic void
todostatic void
todostatic void
todostatic void
todostatic void
todostatic void
todostatic void
todo(package private) static void
todostatic void
todo(package private) static void
translate
(double d1, double d2) translate(package private) static void
pad the cp translation
-
Field Details
-
zz
zz -
debug
static boolean debugdebug -
debugSetup
static boolean debugSetupdebugSetup -
debugplerp
static boolean debugplerpdebugplerp -
debugKey
static boolean debugKeydebugKey -
debugMotion
static boolean debugMotiondebugMotion -
debugMouse
static boolean debugMousedebugMouse -
debugDist
static boolean debugDistdebugDist -
debugDrag
static boolean debugDragdebugDrag -
debugDraw
static boolean debugDrawdebugDraw -
debugSelect
static boolean debugSelectdebugSelect -
dc
DotsCanvas dcdc -
tr
Tr trt -
board
Board boardboard -
ip
Interpreter ipip -
dim
static final int dimdim- See Also:
-
pad
static final int padpad- See Also:
-
showLabels
static boolean showLabelsshowLabels -
t
static double tsome default 't' numbers -
step
static double stepsome default 't' numbers -
panelDim
static int panelDimpanel dim -
animated
public static boolean animatedtodo -
moulding
public static boolean mouldingtodo -
ghosting
public static boolean ghostingtodo -
playing
public static boolean playingtodo -
showControlPoints
public static boolean showControlPointstodo -
showPointPoly
public static boolean showPointPolytodo -
simplifiedFunctions
public static boolean simplifiedFunctionstodo -
showSpan
public static boolean showSpantodo -
showAdditionals
public static boolean showAdditionalstodo -
drawConnected
public static boolean drawConnectedtodo -
allowOffsetting
static boolean allowOffsettingtodo -
allowReordering
public static boolean allowReorderingtodo -
resetAllowed
public static boolean resetAllowedtodo -
redrawOnMouseMove
public static boolean redrawOnMouseMovetodo
-
-
Constructor Details
-
U
-
-
Method Details
-
addBoard
-
log
-
loop
static void loop()loop -
noLoop
static void noLoop()noLoop -
getDist
-
translate
static void translate(double d1, double d2) translate- Parameters:
d1
- -d2
- -
-
setupDefaultCubicPoly
void setupDefaultCubicPoly()setupDefaultCubicPolyFixed color list
the default 3rd order poly-curve
-
drawBoundingBox
-
returnAllSelectedEndPoints
-
returnAllConnectedLines
-
checkLowerConnectedLines
-
checkConnectedLines
-
checkUpperConnectedLines
-
addLineToArray
-
logAL
-
preDraw
void preDraw()Runs before drawFunction is called, if this is an animate cp. -
postDraw
void postDraw()Runs after drawFunction is called,
if this is an animate cp. -
draw
-
usePanelPadding
static void usePanelPadding()pad the cp translation -
nextPanel
static void nextPanel()switch drawing over to the next dim*dim area -
drawAxes
-
animate
public static void animate()todo -
noAnimate
public static void noAnimate()todo -
toggleAnimate
public static void toggleAnimate()todo -
mould
public static void mould()todo -
noMoulding
public static void noMoulding()todo -
toggleMoulding
public static void toggleMoulding()todo -
ghost
public static void ghost()todo -
noGhost
public static void noGhost()todo -
toggleGhosting
public static void toggleGhosting()todo -
play
public static void play()todo -
pause
public static void pause()todo -
togglePlaying
public static void togglePlaying()todo -
labels
public static void labels()todo -
noLabels
public static void noLabels()todo -
toggleLabels
public static void toggleLabels()todo -
controls
public static void controls()todo -
noControls
public static void noControls()todo -
toggleControls
public static void toggleControls()todo -
pointPoly
public static void pointPoly()todo -
noPointPoly
public static void noPointPoly()todo -
togglePointPoly
public static void togglePointPoly()todo -
simplify
public static void simplify()todo -
noSimplify
public static void noSimplify()todo -
toggleSimplify
static void toggleSimplify()todo -
span
public static void span()todo -
noSpan
public static void noSpan()todo -
toggleSpan
public static void toggleSpan()todo -
additionals
public static void additionals()todo -
noAdditionals
public static void noAdditionals()todo -
toggleAdditionals
public static void toggleAdditionals()todo -
connect
public static void connect()todo -
noConnect
public static void noConnect()todo -
toggleConnect
public static void toggleConnect()todo -
offsetting
static void offsetting()todo -
noOffsetting
static void noOffsetting()todo -
toggleOffsetting
public static void toggleOffsetting()todo -
reorder
public static void reorder()todo -
noReorder
public static void noReorder()todo -
toggleReorder
public static void toggleReorder()todo -
mayReset
public static void mayReset()todo -
noReset
public static void noReset()todo -
toggleReset
public static void toggleReset()todo -
redrawOnMove
public static void redrawOnMove()todo -
noRedrawOnMove
public static void noRedrawOnMove()todo -
toggleRedrawOnMove
public static void toggleRedrawOnMove()todo -
startCurveMoulding
-
endCurveMoulding
-
mouldCurve
-
testCurveMoulding
todo- Parameters:
curve
- -mx
- -my
- -- Returns:
- true or false
-
dist
public static double dist(double x1, double y1, double x2, double y2) how close are these two curves?- Parameters:
x1
- -y1
- -x2
- -y2
- -- Returns:
- distance
-
bigger
public static double bigger(double x1, double x2) bigger- Parameters:
x1
- -x2
- -- Returns:
- the bigger
-
smaller
public static double smaller(double x1, double x2) smaller- Parameters:
x1
- -x2
- -- Returns:
- the smaller
-
lerp
public static double lerp(double x1, double x2, double t) lerp- Parameters:
x1
- -x2
- -t
- -- Returns:
- new value
-
plerp
-
plerp
-