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, weight
public 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 IObject
public boolean isValid()
IObject
public 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)
ICurveI
public double[] knots()
ICurveI
public boolean isRational()
isRational
in interface ICurveI
public boolean isRational(ISwitchE e)
isRational
in interface ICurveI
public IBoolI isRational(ISwitchR r)
isRational
in interface ICurveI
public int num()
ICurveI
public ICurveR rev()
ICurveI
public ICurveR add(double x, double y, double z)
add
in interface ICurveI
add
in interface ITransformable
public ICurveR add(IDoubleI x, IDoubleI y, IDoubleI z)
add
in interface ICurveI
add
in interface ITransformable
public ICurveR add(IVecI v)
add
in interface ICurveI
add
in interface ITransformable
public ICurveR sub(double x, double y, double z)
sub
in interface ICurveI
sub
in interface ITransformable
public ICurveR sub(IDoubleI x, IDoubleI y, IDoubleI z)
sub
in interface ICurveI
sub
in interface ITransformable
public ICurveR sub(IVecI v)
sub
in interface ICurveI
sub
in interface ITransformable
public ICurveR mul(IDoubleI v)
mul
in interface ICurveI
mul
in interface ITransformable
public ICurveR mul(double v)
mul
in interface ICurveI
mul
in interface ITransformable
public ICurveR div(IDoubleI v)
div
in interface ICurveI
div
in interface ITransformable
public ICurveR div(double v)
div
in interface ICurveI
div
in interface ITransformable
public ICurveR neg()
neg
in interface ICurveI
neg
in interface ITransformable
public ICurveR flip()
ICurveI
flip
in interface ICurveI
flip
in interface ITransformable
public ICurveR add(IVecI v, double f)
add
in interface ICurveI
add
in interface ITransformable
public ICurveR add(IVecI v, IDoubleI f)
ITransformable
add
in interface ICurveI
add
in interface ITransformable
public ICurveR add(double f, IVecI v)
add
in interface ITransformable
public ICurveR add(IDoubleI f, IVecI v)
ITransformable
add
in interface ITransformable
public ICurveR rot(IDoubleI angle)
ITransformable
rot
in interface ITransformable
public ICurveR rot(double angle)
rot
in interface ITransformable
public ICurveR rot(IVecI axis, IDoubleI angle)
ITransformable
rot
in interface ICurveI
rot
in interface ITransformable
public ICurveR rot(IVecI axis, double angle)
rot
in interface ICurveI
rot
in interface ITransformable
public ICurveR rot(IVecI center, IVecI axis, IDoubleI angle)
ITransformable
rot
in interface ICurveI
rot
in interface ITransformable
public ICurveR rot(IVecI center, IVecI axis, double angle)
rot
in interface ICurveI
rot
in interface ITransformable
public ICurveR rot(IVecI axis, IVecI destDir)
rot
in interface ICurveI
rot
in interface ITransformable
public ICurveR rot(IVecI center, IVecI axis, IVecI destPt)
rot
in interface ICurveI
rot
in interface ITransformable
public ICurveR rot2(IDoubleI angle)
ITransformable
rot2
in interface ITransformable
public ICurveR rot2(double angle)
ITransformable
rot2
in interface ITransformable
public ICurveR rot2(IVecI center, IDoubleI angle)
ITransformable
rot2
in interface ITransformable
public ICurveR rot2(IVecI center, double angle)
rot2
in interface ITransformable
public ICurveR rot2(IVecI destDir)
rot2
in interface ITransformable
public ICurveR rot2(IVecI center, IVecI destPt)
rot2
in interface ITransformable
public ICurveR scale(IDoubleI f)
scale
in interface ICurveI
scale
in interface ITransformable
public ICurveR scale(double f)
scale
in interface ICurveI
scale
in interface ITransformable
public ICurveR scale(IVecI center, IDoubleI f)
scale
in interface ICurveI
scale
in interface ITransformable
public ICurveR scale(IVecI center, double f)
scale
in interface ICurveI
scale
in interface ITransformable
public ICurveR scale1d(IVecI axis, double f)
scale1d
in interface ICurveI
scale1d
in interface ITransformable
public ICurveR scale1d(IVecI axis, IDoubleI f)
scale1d
in interface ICurveI
scale1d
in interface ITransformable
public ICurveR scale1d(IVecI center, IVecI axis, double f)
scale1d
in interface ICurveI
scale1d
in interface ITransformable
public ICurveR scale1d(IVecI center, IVecI axis, IDoubleI f)
scale1d
in interface ICurveI
scale1d
in interface ITransformable
public ICurveR ref(IVecI planeDir)
ref
in interface ICurveI
ref
in interface ITransformable
public ICurveR ref(IVecI center, IVecI planeDir)
ref
in interface ICurveI
ref
in interface ITransformable
public ICurveR mirror(IVecI planeDir)
mirror
in interface ICurveI
mirror
in interface ITransformable
public ICurveR mirror(IVecI center, IVecI planeDir)
mirror
in interface ICurveI
mirror
in interface ITransformable
public ICurveR shear(double sxy, double syx, double syz, double szy, double szx, double sxz)
shear
in interface ICurveI
shear
in interface ITransformable
public ICurveR shear(IDoubleI sxy, IDoubleI syx, IDoubleI syz, IDoubleI szy, IDoubleI szx, IDoubleI sxz)
shear
in interface ICurveI
shear
in interface ITransformable
public ICurveR shear(IVecI center, double sxy, double syx, double syz, double szy, double szx, double sxz)
shear
in interface ICurveI
shear
in interface ITransformable
public ICurveR shear(IVecI center, IDoubleI sxy, IDoubleI syx, IDoubleI syz, IDoubleI szy, IDoubleI szx, IDoubleI sxz)
shear
in interface ICurveI
shear
in interface ITransformable
public ICurveR shearXY(double sxy, double syx)
shearXY
in interface ICurveI
shearXY
in interface ITransformable
public ICurveR shearXY(IDoubleI sxy, IDoubleI syx)
shearXY
in interface ICurveI
shearXY
in interface ITransformable
public ICurveR shearXY(IVecI center, double sxy, double syx)
shearXY
in interface ICurveI
shearXY
in interface ITransformable
public ICurveR shearXY(IVecI center, IDoubleI sxy, IDoubleI syx)
shearXY
in interface ICurveI
shearXY
in interface ITransformable
public ICurveR shearYZ(double syz, double szy)
shearYZ
in interface ICurveI
shearYZ
in interface ITransformable
public ICurveR shearYZ(IDoubleI syz, IDoubleI szy)
shearYZ
in interface ICurveI
shearYZ
in interface ITransformable
public ICurveR shearYZ(IVecI center, double syz, double szy)
shearYZ
in interface ICurveI
shearYZ
in interface ITransformable
public ICurveR shearYZ(IVecI center, IDoubleI syz, IDoubleI szy)
shearYZ
in interface ICurveI
shearYZ
in interface ITransformable
public ICurveR shearZX(double szx, double sxz)
shearZX
in interface ICurveI
shearZX
in interface ITransformable
public ICurveR shearZX(IDoubleI szx, IDoubleI sxz)
shearZX
in interface ICurveI
shearZX
in interface ITransformable
public ICurveR shearZX(IVecI center, double szx, double sxz)
shearZX
in interface ICurveI
shearZX
in interface ITransformable
public ICurveR shearZX(IVecI center, IDoubleI szx, IDoubleI sxz)
shearZX
in interface ICurveI
shearZX
in interface ITransformable
public ICurveR translate(double x, double y, double z)
translate
in interface ICurveI
translate
in interface ITransformable
public ICurveR translate(IDoubleI x, IDoubleI y, IDoubleI z)
translate
in interface ICurveI
translate
in interface ITransformable
public ICurveR translate(IVecI v)
translate
in interface ICurveI
translate
in interface ITransformable
public ICurveR mv(double x, double y, double z)
mv
in interface ICurveI
mv
in interface ITransformable
public ICurveR mv(IDoubleI x, IDoubleI y, IDoubleI z)
mv
in interface ICurveI
mv
in interface ITransformable
public ICurveR mv(IVecI v)
mv
in interface ICurveI
mv
in interface ITransformable
public ICurveR cp()
public ICurveR cp(double x, double y, double z)
cp
in interface ICurveI
cp
in interface ITransformable
public ICurveR cp(IDoubleI x, IDoubleI y, IDoubleI z)
cp
in interface ICurveI
cp
in interface ITransformable
public ICurveR cp(IVecI v)
cp
in interface ICurveI
cp
in interface ITransformable
public ICurveR transform(IMatrix3I mat)
transform
in interface ICurveI
transform
in interface ITransformable
public ICurveR transform(IMatrix4I mat)
transform
in interface ICurveI
transform
in interface ITransformable
public ICurveR transform(IVecI xvec, IVecI yvec, IVecI zvec)
transform
in interface ICurveI
transform
in interface ITransformable
public ICurveR transform(IVecI xvec, IVecI yvec, IVecI zvec, IVecI translate)
transform
in interface ICurveI
transform
in interface ITransformable
public ICurveR layer(ILayer l)
IObject
public ICurveR clr(IColor c, int alpha)
IObject
public ICurveR clr(IColor c, float alpha)
IObject
public ICurveR clr(IColor c, double alpha)
IObject
public ICurveR clr(IObject o)
IObject
public 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 IObject
public ICurveR setHSBColor(double h, double s, double b, double a)
setHSBColor
in class IObject
public ICurveR setHSBColor(float h, float s, float b)
setHSBColor
in class IObject
public ICurveR setHSBColor(double h, double s, double b)
setHSBColor
in class IObject