public class ICurveR extends IObject implements ICurveI
| Modifier and Type | Class and Description |
|---|---|
static class |
ICurveR.IsClosed |
static class |
ICurveR.Pt |
static class |
ICurveR.Tan |
static class |
ICurveR.U |
static class |
ICurveR.U2 |
| Constructor and Description |
|---|
ICurveR() |
ICurveR(ICurveI crv) |
ICurveR(ICurveR crv) |
ICurveR(IServerI s) |
ICurveR(IServerI s,
ICurveI crv) |
ICurveR(IServerI s,
ICurveR crv) |
| Modifier and Type | Method and Description |
|---|---|
ICurveR |
add(double x,
double y,
double z)
transformation methods; API of ITransformable interface
|
ICurveR |
add(double f,
IVecI v)
scale add alias
|
ICurveR |
add(IDoubleI x,
IDoubleI y,
IDoubleI z) |
ICurveR |
add(IDoubleI f,
IVecI v)
scale add alias
|
ICurveR |
add(IVecI v) |
ICurveR |
add(IVecI v,
double f)
scale add
|
ICurveR |
add(IVecI v,
IDoubleI f)
scale add
|
IVecI |
center()
returns center of geometry object
|
IVecR |
closePt(IVec2I pt)
find approximately closest point on a curve on 2D
|
IVecR |
closePt(IVecI pt)
find approximately closest point on a curve
|
ICurveR |
clr(java.awt.Color c) |
ICurveR |
clr(java.awt.Color c,
double alpha) |
ICurveR |
clr(java.awt.Color c,
float alpha) |
ICurveR |
clr(java.awt.Color c,
int alpha) |
ICurveR |
clr(double dgray) |
ICurveR |
clr(double dgray,
double dalpha) |
ICurveR |
clr(double dr,
double dg,
double db) |
ICurveR |
clr(double dr,
double dg,
double db,
double da) |
ICurveR |
clr(float fgray) |
ICurveR |
clr(float fgray,
float falpha) |
ICurveR |
clr(float fr,
float fg,
float fb) |
ICurveR |
clr(float fr,
float fg,
float fb,
float fa) |
ICurveR |
clr(IColor c)
to set an object color
|
ICurveR |
clr(IColor c,
double alpha)
to set color, with alpha value overwritten
|
ICurveR |
clr(IColor c,
float alpha)
to set color, with alpha value overwritten
|
ICurveR |
clr(IColor c,
int alpha)
to set color, with alpha value overwritten
|
ICurveR |
clr(int gray) |
ICurveR |
clr(int gray,
int alpha) |
ICurveR |
clr(int r,
int g,
int b) |
ICurveR |
clr(int r,
int g,
int b,
int a) |
ICurveR |
clr(IObject o)
to set the same color with the object
|
ICurveR |
cp()
cp() is alias of dup()
|
ICurveR |
cp(double x,
double y,
double z)
cp() is alias of dup().add()
|
ICurveR |
cp(IDoubleI x,
IDoubleI y,
IDoubleI z)
cp() is alias of dup().add()
|
IVecI |
cp(IIntegerI i)
getting i-th control point
|
IVecI |
cp(int i)
getting i-th control point
|
ICurveR |
cp(IVecI v)
cp() is alias of dup().add()
|
int |
cpNum() |
int |
cpNum(ISwitchE e) |
IIntegerI |
cpNum(ISwitchR r) |
IVecI[] |
cps()
all control points
|
IGraphicObject |
createGraphic(igeo.gui.IGraphicMode m) |
int |
deg() |
int |
deg(ISwitchE e) |
IIntegerI |
deg(ISwitchR r) |
double |
dist(IVec2I pt)
distance to the closest point on a curve on 2D
|
double |
dist(IVecI pt)
distance to the closest point on a curve
|
ICurveR |
div(double v) |
ICurveR |
div(IDoubleI v) |
ICurveR |
dup()
duplicate object
|
IVecR |
end() |
IVecI |
endCP() |
IVecR |
ep(IIntegerI i)
getting i-th edit point
|
IVecR |
ep(int i)
getting i-th edit point
|
int |
epNum() |
int |
epNum(ISwitchE e) |
IIntegerI |
epNum(ISwitchR r) |
ICurveR |
flip()
same with neg
|
ICurveR |
flipU()
alias of rev()
|
ICurveGeo |
get() |
ICurveR |
hide() |
ICurveR |
hsb(double h,
double s,
double b) |
ICurveR |
hsb(double h,
double s,
double b,
double a) |
ICurveR |
hsb(float h,
float s,
float b) |
ICurveR |
hsb(float h,
float s,
float b,
float a) |
void |
initCurve(IServerI s) |
boolean |
isClosed() |
boolean |
isClosed(ISwitchE e) |
IBoolR |
isClosed(ISwitchR r) |
boolean |
isRational() |
boolean |
isRational(ISwitchE e) |
IBoolI |
isRational(ISwitchR r) |
boolean |
isValid()
checking parameters validity.
|
IDoubleI |
knot(IIntegerI i) |
double |
knot(int i)
close curve with the current control points.
|
int |
knotNum() |
int |
knotNum(ISwitchE e) |
IIntegerI |
knotNum(ISwitchR r) |
double[] |
knots()
all knot values
|
double[] |
knots(ISwitchE e) |
IDoubleI[] |
knots(ISwitchR r) |
ICurveR |
layer(ILayer l)
Set layer by ILayer object
|
double |
len() |
double |
len(ISwitchE e) |
IDouble |
len(ISwitchR r) |
IVecR |
mid()
parametrically mid point of a curve
|
ICurveR |
mirror(IVecI planeDir)
mirror is alias of ref
|
ICurveR |
mirror(IVecI center,
IVecI planeDir) |
ICurveR |
mul(double v) |
ICurveR |
mul(IDoubleI v) |
ICurveR |
mv(double x,
double y,
double z)
mv() is alias of add()
|
ICurveR |
mv(IDoubleI x,
IDoubleI y,
IDoubleI z) |
ICurveR |
mv(IVecI v) |
ICurveR |
name(java.lang.String nm)
IObject methods
|
ICurveR |
neg() |
int |
num()
change degree.
|
int |
num(ISwitchE e) |
IIntegerI |
num(ISwitchR r) |
IVecR |
pt(double u) |
IVecR |
pt(IDoubleI u) |
ICurveR |
ref(IVecI planeDir)
reflect(mirror) 3 dimensionally to the other side of the plane
|
ICurveR |
ref(IVecI center,
IVecI planeDir) |
ICurveR |
rev()
reverse U coordintates direction of curve, without creating a new object
|
ICurveR |
revU()
alias of rev()
|
ICurveR |
rot(double angle) |
ICurveR |
rot(IDoubleI angle)
rotation around z-axis and origin
|
ICurveR |
rot(IVecI axis,
double angle) |
ICurveR |
rot(IVecI axis,
IDoubleI angle)
rotation around axis vector
|
ICurveR |
rot(IVecI axis,
IVecI destDir)
rotate to destination direction vector
|
ICurveR |
rot(IVecI center,
IVecI axis,
double angle) |
ICurveR |
rot(IVecI center,
IVecI axis,
IDoubleI angle)
rotation around axis vector and center
|
ICurveR |
rot(IVecI center,
IVecI axis,
IVecI destPt)
rotate to destination point location
|
ICurveR |
rot2(double angle)
rotation on xy-plane around origin; same with rot(double)
|
ICurveR |
rot2(IDoubleI angle)
rotation on xy-plane around origin; same with rot(IDoubleI)
|
ICurveR |
rot2(IVecI destDir)
rotation on xy-plane to destination direction vector
|
ICurveR |
rot2(IVecI center,
double angle) |
ICurveR |
rot2(IVecI center,
IDoubleI angle)
rotation on xy-plane around center
|
ICurveR |
rot2(IVecI center,
IVecI destPt)
rotation on xy-plane to destination point location
|
ICurveR |
scale(double f) |
ICurveR |
scale(IDoubleI f)
alias of mul
|
ICurveR |
scale(IVecI center,
double f) |
ICurveR |
scale(IVecI center,
IDoubleI f) |
ICurveR |
scale1d(IVecI axis,
double f)
scale only in 1 direction
|
ICurveR |
scale1d(IVecI axis,
IDoubleI f) |
ICurveR |
scale1d(IVecI center,
IVecI axis,
double f) |
ICurveR |
scale1d(IVecI center,
IVecI axis,
IDoubleI f) |
ICurveR |
setColor(java.awt.Color c) |
ICurveR |
setColor(java.awt.Color c,
int alpha) |
ICurveR |
setColor(double dgray) |
ICurveR |
setColor(double dgray,
double dalpha) |
ICurveR |
setColor(double dr,
double dg,
double db) |
ICurveR |
setColor(double dr,
double dg,
double db,
double da) |
ICurveR |
setColor(float fgray) |
ICurveR |
setColor(float fgray,
float falpha) |
ICurveR |
setColor(float fr,
float fg,
float fb) |
ICurveR |
setColor(float fr,
float fg,
float fb,
float fa) |
ICurveR |
setColor(int gray) |
ICurveR |
setColor(int gray,
int alpha) |
ICurveR |
setColor(int r,
int g,
int b) |
ICurveR |
setColor(int r,
int g,
int b,
int a) |
ICurveR |
setHSBColor(double h,
double s,
double b) |
ICurveR |
setHSBColor(double h,
double s,
double b,
double a) |
ICurveR |
setHSBColor(float h,
float s,
float b) |
ICurveR |
setHSBColor(float h,
float s,
float b,
float a) |
ICurveR |
shear(double sxy,
double syx,
double syz,
double szy,
double szx,
double sxz)
shear operation
|
ICurveR |
shear(IDoubleI sxy,
IDoubleI syx,
IDoubleI syz,
IDoubleI szy,
IDoubleI szx,
IDoubleI sxz) |
ICurveR |
shear(IVecI center,
double sxy,
double syx,
double syz,
double szy,
double szx,
double sxz) |
ICurveR |
shear(IVecI center,
IDoubleI sxy,
IDoubleI syx,
IDoubleI syz,
IDoubleI szy,
IDoubleI szx,
IDoubleI sxz) |
ICurveR |
shearXY(double sxy,
double syx) |
ICurveR |
shearXY(IDoubleI sxy,
IDoubleI syx) |
ICurveR |
shearXY(IVecI center,
double sxy,
double syx) |
ICurveR |
shearXY(IVecI center,
IDoubleI sxy,
IDoubleI syx) |
ICurveR |
shearYZ(double syz,
double szy) |
ICurveR |
shearYZ(IDoubleI syz,
IDoubleI szy) |
ICurveR |
shearYZ(IVecI center,
double syz,
double szy) |
ICurveR |
shearYZ(IVecI center,
IDoubleI syz,
IDoubleI szy) |
ICurveR |
shearZX(double szx,
double sxz) |
ICurveR |
shearZX(IDoubleI szx,
IDoubleI sxz) |
ICurveR |
shearZX(IVecI center,
double szx,
double sxz) |
ICurveR |
shearZX(IVecI center,
IDoubleI szx,
IDoubleI sxz) |
ICurveR |
show() |
IVecR |
start() |
IVecI |
startCP() |
ICurveR |
sub(double x,
double y,
double z) |
ICurveR |
sub(IDoubleI x,
IDoubleI y,
IDoubleI z) |
ICurveR |
sub(IVecI v) |
IVecR |
tan(double u) |
IVecR |
tan(IDoubleI u) |
ICurveR |
transform(IMatrix3I mat) |
ICurveR |
transform(IMatrix4I mat) |
ICurveR |
transform(IVecI xvec,
IVecI yvec,
IVecI zvec) |
ICurveR |
transform(IVecI xvec,
IVecI yvec,
IVecI zvec,
IVecI translate) |
ICurveR |
translate(double x,
double y,
double z)
translate is alias of add()
|
ICurveR |
translate(IDoubleI x,
IDoubleI y,
IDoubleI z) |
ICurveR |
translate(IVecI v) |
IDoubleI |
u(IInteger epIdx,
IDouble epFraction) |
double |
u(int epIdx,
double epFraction) |
double |
u(ISwitchE r,
IVec2I pt) |
double |
u(ISwitchE r,
IVecI pt) |
IDoubleR |
u(ISwitchR r,
IVec2I pt) |
IDoubleR |
u(ISwitchR r,
IVecI pt) |
double |
u(IVec2I pt)
approximate invert projection from 2D location to interanl parameter U
|
double |
u(IVecI pt)
approximate invert projection from 3D location to interanl parameter U (closest point on curve)
|
double |
uend() |
double |
uend(ISwitchE e) |
IDoubleI |
uend(ISwitchR r) |
double |
ustart() |
double |
ustart(ISwitchE e) |
IDoubleI |
ustart(ISwitchR r) |
ICurveR |
weight(double w) |
ICurveR |
weight(float w) |
addDynamics, addUserData, addUserData, alpha, alphaInt, attr, attr, attr, awtColor, blue, blueInt, brightness, castStringHashMap, clearDynamics, clearGraphics, clr, defaultAttribute, del, deletDynamics, deleteDynamics, deleteDynamics, deleteGraphic, dynamicsNum, getAWTColor, getColor, getDynamics, getGraphic, getGraphic, getParameter, graphicsNum, gray, grayInt, green, greenInt, grey, greyInt, hue, initGraphic, initObject, isVisible, layer, layer, name, red, redInt, resetGraphic, saturation, server, setColor, setColor, setColor, setColor, setColor, setColor, setParameter, setTexture, syncColor, syncGraphic, syncVisibility, syncWeight, texture, updateGraphic, userData, userData, userData, userDataNum, visible, weightpublic ICurveI curve
public ICurveR()
public ICurveR(ICurveI crv)
public ICurveR(IServerI s)
public ICurveR(ICurveR crv)
public void initCurve(IServerI s)
public IGraphicObject createGraphic(igeo.gui.IGraphicMode m)
createGraphic in class IObjectpublic boolean isValid()
IObjectpublic ICurveGeo get()
public IVecI center()
public double u(IVecI pt)
public double u(IVec2I pt)
public double dist(IVecI pt)
public double dist(IVec2I pt)
public double knot(int i)
ICurveIpublic double[] knots()
ICurveIpublic boolean isRational()
isRational in interface ICurveIpublic boolean isRational(ISwitchE e)
isRational in interface ICurveIpublic IBoolI isRational(ISwitchR r)
isRational in interface ICurveIpublic int num()
ICurveIpublic ICurveR rev()
ICurveIpublic ICurveR add(double x, double y, double z)
add in interface ICurveIadd in interface ITransformablepublic ICurveR add(IDoubleI x, IDoubleI y, IDoubleI z)
add in interface ICurveIadd in interface ITransformablepublic ICurveR add(IVecI v)
add in interface ICurveIadd in interface ITransformablepublic ICurveR sub(double x, double y, double z)
sub in interface ICurveIsub in interface ITransformablepublic ICurveR sub(IDoubleI x, IDoubleI y, IDoubleI z)
sub in interface ICurveIsub in interface ITransformablepublic ICurveR sub(IVecI v)
sub in interface ICurveIsub in interface ITransformablepublic ICurveR mul(IDoubleI v)
mul in interface ICurveImul in interface ITransformablepublic ICurveR mul(double v)
mul in interface ICurveImul in interface ITransformablepublic ICurveR div(IDoubleI v)
div in interface ICurveIdiv in interface ITransformablepublic ICurveR div(double v)
div in interface ICurveIdiv in interface ITransformablepublic ICurveR neg()
neg in interface ICurveIneg in interface ITransformablepublic ICurveR flip()
ICurveIflip in interface ICurveIflip in interface ITransformablepublic ICurveR add(IVecI v, double f)
add in interface ICurveIadd in interface ITransformablepublic ICurveR add(IVecI v, IDoubleI f)
ITransformableadd in interface ICurveIadd in interface ITransformablepublic ICurveR add(double f, IVecI v)
add in interface ITransformablepublic ICurveR add(IDoubleI f, IVecI v)
ITransformableadd in interface ITransformablepublic ICurveR rot(IDoubleI angle)
ITransformablerot in interface ITransformablepublic ICurveR rot(double angle)
rot in interface ITransformablepublic ICurveR rot(IVecI axis, IDoubleI angle)
ITransformablerot in interface ICurveIrot in interface ITransformablepublic ICurveR rot(IVecI axis, double angle)
rot in interface ICurveIrot in interface ITransformablepublic ICurveR rot(IVecI center, IVecI axis, IDoubleI angle)
ITransformablerot in interface ICurveIrot in interface ITransformablepublic ICurveR rot(IVecI center, IVecI axis, double angle)
rot in interface ICurveIrot in interface ITransformablepublic ICurveR rot(IVecI axis, IVecI destDir)
rot in interface ICurveIrot in interface ITransformablepublic ICurveR rot(IVecI center, IVecI axis, IVecI destPt)
rot in interface ICurveIrot in interface ITransformablepublic ICurveR rot2(IDoubleI angle)
ITransformablerot2 in interface ITransformablepublic ICurveR rot2(double angle)
ITransformablerot2 in interface ITransformablepublic ICurveR rot2(IVecI center, IDoubleI angle)
ITransformablerot2 in interface ITransformablepublic ICurveR rot2(IVecI center, double angle)
rot2 in interface ITransformablepublic ICurveR rot2(IVecI destDir)
rot2 in interface ITransformablepublic ICurveR rot2(IVecI center, IVecI destPt)
rot2 in interface ITransformablepublic ICurveR scale(IDoubleI f)
scale in interface ICurveIscale in interface ITransformablepublic ICurveR scale(double f)
scale in interface ICurveIscale in interface ITransformablepublic ICurveR scale(IVecI center, IDoubleI f)
scale in interface ICurveIscale in interface ITransformablepublic ICurveR scale(IVecI center, double f)
scale in interface ICurveIscale in interface ITransformablepublic ICurveR scale1d(IVecI axis, double f)
scale1d in interface ICurveIscale1d in interface ITransformablepublic ICurveR scale1d(IVecI axis, IDoubleI f)
scale1d in interface ICurveIscale1d in interface ITransformablepublic ICurveR scale1d(IVecI center, IVecI axis, double f)
scale1d in interface ICurveIscale1d in interface ITransformablepublic ICurveR scale1d(IVecI center, IVecI axis, IDoubleI f)
scale1d in interface ICurveIscale1d in interface ITransformablepublic ICurveR ref(IVecI planeDir)
ref in interface ICurveIref in interface ITransformablepublic ICurveR ref(IVecI center, IVecI planeDir)
ref in interface ICurveIref in interface ITransformablepublic ICurveR mirror(IVecI planeDir)
mirror in interface ICurveImirror in interface ITransformablepublic ICurveR mirror(IVecI center, IVecI planeDir)
mirror in interface ICurveImirror in interface ITransformablepublic ICurveR shear(double sxy, double syx, double syz, double szy, double szx, double sxz)
shear in interface ICurveIshear in interface ITransformablepublic ICurveR shear(IDoubleI sxy, IDoubleI syx, IDoubleI syz, IDoubleI szy, IDoubleI szx, IDoubleI sxz)
shear in interface ICurveIshear in interface ITransformablepublic ICurveR shear(IVecI center, double sxy, double syx, double syz, double szy, double szx, double sxz)
shear in interface ICurveIshear in interface ITransformablepublic ICurveR shear(IVecI center, IDoubleI sxy, IDoubleI syx, IDoubleI syz, IDoubleI szy, IDoubleI szx, IDoubleI sxz)
shear in interface ICurveIshear in interface ITransformablepublic ICurveR shearXY(double sxy, double syx)
shearXY in interface ICurveIshearXY in interface ITransformablepublic ICurveR shearXY(IDoubleI sxy, IDoubleI syx)
shearXY in interface ICurveIshearXY in interface ITransformablepublic ICurveR shearXY(IVecI center, double sxy, double syx)
shearXY in interface ICurveIshearXY in interface ITransformablepublic ICurveR shearXY(IVecI center, IDoubleI sxy, IDoubleI syx)
shearXY in interface ICurveIshearXY in interface ITransformablepublic ICurveR shearYZ(double syz, double szy)
shearYZ in interface ICurveIshearYZ in interface ITransformablepublic ICurveR shearYZ(IDoubleI syz, IDoubleI szy)
shearYZ in interface ICurveIshearYZ in interface ITransformablepublic ICurveR shearYZ(IVecI center, double syz, double szy)
shearYZ in interface ICurveIshearYZ in interface ITransformablepublic ICurveR shearYZ(IVecI center, IDoubleI syz, IDoubleI szy)
shearYZ in interface ICurveIshearYZ in interface ITransformablepublic ICurveR shearZX(double szx, double sxz)
shearZX in interface ICurveIshearZX in interface ITransformablepublic ICurveR shearZX(IDoubleI szx, IDoubleI sxz)
shearZX in interface ICurveIshearZX in interface ITransformablepublic ICurveR shearZX(IVecI center, double szx, double sxz)
shearZX in interface ICurveIshearZX in interface ITransformablepublic ICurveR shearZX(IVecI center, IDoubleI szx, IDoubleI sxz)
shearZX in interface ICurveIshearZX in interface ITransformablepublic ICurveR translate(double x, double y, double z)
translate in interface ICurveItranslate in interface ITransformablepublic ICurveR translate(IDoubleI x, IDoubleI y, IDoubleI z)
translate in interface ICurveItranslate in interface ITransformablepublic ICurveR translate(IVecI v)
translate in interface ICurveItranslate in interface ITransformablepublic ICurveR mv(double x, double y, double z)
mv in interface ICurveImv in interface ITransformablepublic ICurveR mv(IDoubleI x, IDoubleI y, IDoubleI z)
mv in interface ICurveImv in interface ITransformablepublic ICurveR mv(IVecI v)
mv in interface ICurveImv in interface ITransformablepublic ICurveR cp()
public ICurveR cp(double x, double y, double z)
cp in interface ICurveIcp in interface ITransformablepublic ICurveR cp(IDoubleI x, IDoubleI y, IDoubleI z)
cp in interface ICurveIcp in interface ITransformablepublic ICurveR cp(IVecI v)
cp in interface ICurveIcp in interface ITransformablepublic ICurveR transform(IMatrix3I mat)
transform in interface ICurveItransform in interface ITransformablepublic ICurveR transform(IMatrix4I mat)
transform in interface ICurveItransform in interface ITransformablepublic ICurveR transform(IVecI xvec, IVecI yvec, IVecI zvec)
transform in interface ICurveItransform in interface ITransformablepublic ICurveR transform(IVecI xvec, IVecI yvec, IVecI zvec, IVecI translate)
transform in interface ICurveItransform in interface ITransformablepublic ICurveR layer(ILayer l)
IObjectpublic ICurveR clr(IColor c, int alpha)
IObjectpublic ICurveR clr(IColor c, float alpha)
IObjectpublic ICurveR clr(IColor c, double alpha)
IObjectpublic ICurveR clr(IObject o)
IObjectpublic ICurveR setColor(double dr, double dg, double db)
public ICurveR setColor(float fr, float fg, float fb, float fa)
public ICurveR setColor(double dr, double dg, double db, double da)
public ICurveR setHSBColor(float h, float s, float b, float a)
setHSBColor in class IObjectpublic ICurveR setHSBColor(double h, double s, double b, double a)
setHSBColor in class IObjectpublic ICurveR setHSBColor(float h, float s, float b)
setHSBColor in class IObjectpublic ICurveR setHSBColor(double h, double s, double b)
setHSBColor in class IObject