|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectigeo.IParameterObject
igeo.IVec2
public class IVec2
Class of 2 dimensional vector.
| Field Summary | |
|---|---|
double |
x
|
double |
y
|
| Fields inherited from class igeo.IParameterObject |
|---|
parent |
| Constructor Summary | |
|---|---|
IVec2()
|
|
IVec2(double x,
double y)
|
|
IVec2(IDoubleI x,
IDoubleI y)
|
|
IVec2(IServerI s)
|
|
IVec2(IServerI s,
double x,
double y)
|
|
IVec2(IServerI s,
IDoubleI x,
IDoubleI y)
|
|
IVec2(IServerI s,
IVec2 v)
|
|
IVec2(IServerI s,
IVec2I v)
|
|
IVec2(IServerI s,
IVecI v)
|
|
IVec2(IVec2 v)
|
|
IVec2(IVec2I v)
|
|
IVec2(IVecI v)
|
|
| Method Summary | |
|---|---|
IVec2 |
add(double x,
double y)
|
IVec2 |
add(double f,
IVec2 v)
scale add; alias |
IVec2 |
add(double f,
IVec2I v)
scale add; alias |
IVec2 |
add(IDoubleI x,
IDoubleI y)
|
IVec2 |
add(IDoubleI f,
IVec2I v)
scale add; alias |
IVec2 |
add(IVec2 v)
|
IVec2 |
add(IVec2 v,
double f)
scale add |
IVec2 |
add(IVec2I v)
|
IVec2 |
add(IVec2I v,
double f)
scale add |
IVec2 |
add(IVec2I v,
IDoubleI f)
scale add |
double |
angle(double vx,
double vy)
angle between two vectors |
double |
angle(ISwitchE e,
IVec2I v)
angle between two vectors |
IDouble |
angle(ISwitchR r,
IVec2I v)
angle between two vectors |
double |
angle(IVec2 v)
|
double |
angle(IVec2I v)
angle between two vectors |
IVec2 |
bisect(double vx,
double vy)
create a new instance of bisector |
IVec2 |
bisect(IVec2 v)
create a new instance of bisector |
IVec2 |
bisect(IVec2I v)
create a new instance of bisector |
IVec |
cross(double vx,
double vy)
cross product in z direction as IVec |
IVec |
cross(IVec2 v)
cross product in z direction as IVec |
IVec |
cross(IVec2I v)
cross product in z direction as IVec |
IVec2 |
dif(double vx,
double vy)
create a new instance of difference |
IVec2 |
dif(IVec2 v)
create a new instance of difference |
IVec2 |
dif(IVec2I v)
create a new instance of difference |
IVec2 |
diff(double vx,
double vy)
alias of dif |
IVec2 |
diff(IVec2 v)
alias of dif |
IVec2 |
diff(IVec2I v)
alias of dif |
double |
dist(double vx,
double vy)
distance of two vectors |
double |
dist(ISwitchE e,
IVec2I v)
distance of two vectors |
IDouble |
dist(ISwitchR r,
IVec2I v)
distance of two vectors |
double |
dist(IVec2 v)
distance of two vectors |
double |
dist(IVec2I v)
distance of two vectors |
double |
dist2(double vx,
double vy)
squared distance of two vectors |
double |
dist2(ISwitchE e,
IVec2I v)
squared distance of two vectors |
IDouble |
dist2(ISwitchR r,
IVec2I v)
squared distance of two vectors |
double |
dist2(IVec2 v)
squared distance of two vectors |
double |
dist2(IVec2I v)
squared distance of two vectors |
double |
distToLine(IVec2 pt1,
IVec2 pt2)
|
IVec2 |
div(double x)
|
IVec2 |
div(IDouble v)
|
IVec2 |
div(IDoubleI v)
|
double |
dot(double vx,
double vy)
dot product |
double |
dot(ISwitchE e,
IVec2I v)
dot product |
IDouble |
dot(ISwitchR r,
IVec2I v)
dot product |
double |
dot(IVec2 v)
dot product |
double |
dot(IVec2I v)
dot product |
IVec2 |
dup()
|
boolean |
eq(double vx,
double vy)
whether location is same or not |
boolean |
eq(double vx,
double vy,
double tolerance)
whether location is same or not within tolerance |
boolean |
eq(ISwitchE e,
IVec2I v)
whether location is same or not |
boolean |
eq(ISwitchE e,
IVec2I v,
double tolerance)
whether location is same or not within tolerance |
IBool |
eq(ISwitchR r,
IVec2I v)
whether location is same or not |
IBool |
eq(ISwitchR r,
IVec2I v,
IDoubleI tolerance)
whether location is same or not within tolerance |
boolean |
eq(IVec2 v)
whether location is same or not |
boolean |
eq(IVec2 v,
double tolerance)
whether location is same or not within tolerance |
boolean |
eq(IVec2I v)
whether location is same or not |
boolean |
eq(IVec2I v,
double tolerance)
whether location is same or not within tolerance |
boolean |
eqX(double vx)
check if same in X |
boolean |
eqX(double vx,
double tolerance)
check if same in X within tolerance |
boolean |
eqX(ISwitchE e,
IVec2I v)
check if same in X |
boolean |
eqX(ISwitchE e,
IVec2I v,
double tolerance)
check if same in X within tolerance |
IBool |
eqX(ISwitchR r,
IVec2I v)
check if same in X |
IBool |
eqX(ISwitchR r,
IVec2I v,
IDoubleI tolerance)
check if same in X within tolerance |
boolean |
eqX(IVec2 v)
check if same in X |
boolean |
eqX(IVec2 v,
double tolerance)
check if same in X within tolerance |
boolean |
eqX(IVec2I v)
check if same in X |
boolean |
eqX(IVec2I v,
double tolerance)
check if same in X within tolerance |
boolean |
eqY(double vy)
check if same in Y |
boolean |
eqY(double vy,
double tolerance)
check if same in Y within tolerance |
boolean |
eqY(ISwitchE e,
IVec2I v)
check if same in Y |
boolean |
eqY(ISwitchE e,
IVec2I v,
double tolerance)
check if same in Y within tolerance |
IBool |
eqY(ISwitchR r,
IVec2I v)
check if same in Y |
IBool |
eqY(ISwitchR r,
IVec2I v,
IDoubleI tolerance)
check if same in Y within tolerance |
boolean |
eqY(IVec2 v)
check if same in Y |
boolean |
eqY(IVec2 v,
double tolerance)
check if same in Y within tolerance |
boolean |
eqY(IVec2I v)
check if same in Y |
boolean |
eqY(IVec2I v,
double tolerance)
check if same in Y within tolerance |
IVec2 |
flip()
alias of neg |
IVec2 |
get()
|
IDouble |
getX()
|
IDouble |
getY()
|
static IVec2 |
intersect(IVec2I pt1,
IVec2I dir1,
IVec2I pt2,
IVec2I dir2)
intersection of two infinite lines |
static IVec2 |
intersectPolygon(IVec2I p1,
IVec2I p2,
IVec2I[] pts)
|
static IVec2 |
intersectPolyline(IVec2I p1,
IVec2I p2,
IVec2I[] pts)
|
static IVec2 |
intersectPolyline(IVec2I p1,
IVec2I p2,
IVec2I[] pts,
boolean closed)
|
static IVec2 |
intersectSegment(IVec2I line1pt1,
IVec2I line1pt2,
IVec2I line2pt1,
IVec2I line2pt2)
|
static IVec2 |
intersectSegmentAndXLine(IVec2I linePt1,
IVec2I linePt2,
double y)
|
static IVec2 |
intersectSegmentAndYLine(IVec2I linePt1,
IVec2I linePt2,
double x)
|
static IVec2 |
intersectXLine(IVec2 linePt,
IVec2 lineDir,
double yOfXLine)
|
static IVec2 |
intersectYLine(IVec2 linePt,
IVec2 lineDir,
double xOfYLine)
|
boolean |
isBetween(IVec2I pt1,
IVec2I pt2)
|
boolean |
isInside(IVec2[] pts)
determine if the point is insde the polygon defined by the argument true if the point is on the edge of polygon |
boolean |
isInside(IVec2I[] pts)
determine if the point is insde the polygon defined by the argument |
boolean |
isOnLine(IVec2 pt1,
IVec2 pt2)
|
boolean |
isParallel(IVec2I v)
check if two vectors are parallel |
boolean |
isParallel(IVec2I v,
double angleReso)
check if two vectors are parallel |
boolean |
isStraight(IVec2I v1,
IVec2I v2)
check if three locations are on straight line |
boolean |
isStraight(IVec2I v1,
IVec2I v2,
double angleReso)
check if three locations are on straight line |
double |
len()
getting length |
IVec2 |
len(double l)
setting length |
IVec2 |
len(IDoubleI l)
setting length |
double |
len(ISwitchE e)
getting length |
IDouble |
len(ISwitchR r)
getting length |
double |
len2()
return squared length of the vector in double |
double |
len2(ISwitchE e)
return squared length of the vector in double |
IDouble |
len2(ISwitchR r)
return squared length of the vector in double |
IVec2 |
mid(double vx,
double vy)
create a new instance of midpoint |
IVec2 |
mid(IVec2 v)
create a new instance of midpoint |
IVec2 |
mid(IVec2I v)
create a new instance of midpoint |
IVec2 |
mirror(double lineX,
double lineY)
reflect (mirror) 2 dimensionally to the other side of the line |
IVec2 |
mirror(double linePtX,
double linePtY,
double lineDirX,
double lineDirY)
reflect (mirror) 2 dimensionally to the other side of the line at line point |
IVec2 |
mirror(IVec2 lineDir)
reflect (mirror) 2 dimensionally to the other side of the line |
IVec2 |
mirror(IVec2I lineDir)
reflect (mirror) 2 dimensionally to the other side of the line |
IVec2 |
mirror(IVec2I linePt,
IVec2I lineDir)
reflect (mirror) 2 dimensionally to the other side of the line |
IVec2 |
mirror(IVec2 linePt,
IVec2 lineDir)
reflect (mirror) 2 dimensionally to the other side of the line |
IVec2 |
mul(double x)
|
IVec2 |
mul(IDouble v)
|
IVec2 |
mul(IDoubleI v)
|
IVec2 |
neg()
|
IVecI |
nml(double vx,
double vy)
alias of cross |
IVecI |
nml(double vx1,
double vy1,
double vx2,
double vy2)
create normal vector from 3 points of self, pt1 and pt2 |
IVec |
nml(IVec2 v)
alias of cross |
IVec |
nml(IVec2I v)
alias of cross |
IVecI |
nml(IVec2I pt1,
IVec2I pt2)
create normal vector from 3 points of self, pt1 and pt2 |
IVecI |
nml(IVec2 pt1,
IVec2 pt2)
create normal vector from 3 points of self, pt1 and pt2 |
IVec2 |
ortho()
rotate vector in Pi/2 |
IVec2 |
ref(double lineX,
double lineY)
reflect (mirror) 2 dimensionally to the other side of the line |
IVec2 |
ref(double linePtX,
double linePtY,
double lineDirX,
double lineDirY)
reflect (mirror) 2 dimensionally to the other side of the line at line point |
IVec2 |
ref(IVec2 lineDir)
reflect (mirror) 2 dimensionally to the other side of the line |
IVec2 |
ref(IVec2I lineDir)
reflect (mirror) 2 dimensionally to the other side of the line |
IVec2 |
ref(IVec2I linePt,
IVec2I lineDir)
reflect (mirror) 2 dimensionally to the other side of the line |
IVec2 |
ref(IVec2 linePt,
IVec2 lineDir)
reflect (mirror) 2 dimensionally to the other side of the line |
static IVec2I[] |
removeDuplicatedPoints(IVec2I[] pts,
boolean closed)
|
static IVec2I[] |
removeStraightPoints(IVec2I[] pts,
boolean closed)
remove points which are on straight line of adjacents |
IVec2 |
rev()
alias of neg |
IVec2 |
rot(double angle)
rotate |
IVec2 |
rot(double centerX,
double centerY,
double angle)
rotate around center |
IVec2 |
rot(IDoubleI angle)
rotate |
IVec2 |
rot(IVec2 destDir)
rotate towards destination direction |
IVec2 |
rot(IVec2 center,
double angle)
rotate around center |
IVec2 |
rot(IVec2I destDir)
rotate towards destination direction |
IVec2 |
rot(IVec2I center,
double angle)
rotate around center |
IVec2 |
rot(IVec2I center,
IDoubleI angle)
rotate around center |
IVec2 |
rot(IVec2I center,
IVec2I destPt)
rotate around center towards destination point |
IVec2 |
rot(IVec2 center,
IVec2 destPt)
rotate around center towards destination point |
IVec2 |
scale(double f)
alias of mul |
IVec2 |
scale(double centerX,
double centerY,
double f)
scale around center |
IVec2 |
scale(IDoubleI f)
alias of mul |
IVec2 |
scale(IVec2 center,
double f)
scale around center |
IVec2 |
scale(IVec2I center,
double f)
scale around center |
IVec2 |
scale(IVec2I center,
IDoubleI f)
scale around center |
IVec2 |
set(double x,
double y)
|
IVec2 |
set(IDoubleI x,
IDoubleI y)
|
IVec2 |
set(IVec2 v)
|
IVec2 |
set(IVec2I v)
|
IVec2 |
sub(double x,
double y)
|
IVec2 |
sub(IDoubleI x,
IDoubleI y)
|
IVec2 |
sub(IVec2 v)
|
IVec2 |
sub(IVec2I v)
|
IVec2 |
sum(double vx,
double vy)
create a new instance of summation |
IVec2 |
sum(IVec2 v)
create a new instance of summation |
IVec2 |
sum(IVec2 v2,
double w2)
create a new instance of weighted sum |
IVec2 |
sum(IVec2 v2,
double w1,
double w2)
create a new instance of weighted sum |
IVec2 |
sum(IVec2I... v)
create a new instance of summation |
IVec2 |
sum(IVec2I v)
create a new instance of summation |
IVec2 |
sum(IVec2I v2,
double w2)
create a new instance of weighted sum |
IVec2 |
sum(IVec2I v2,
double w1,
double w2)
create a new instance of weighted sum |
IVec2 |
sum(IVec2I v2,
IDoubleI w2)
create a new instance of weighted sum |
IVec2 |
sum(IVec2I v2,
IDoubleI w1,
IDoubleI w2)
create a new instance of weighted sum |
IVec |
to3d()
|
IVec |
to3d(double z)
|
IVec |
to3d(IDoubleI z)
|
IVec4 |
to4d()
|
IVec4 |
to4d(double z,
double w)
|
IVec4 |
to4d(IDoubleI z,
IDoubleI w)
|
java.lang.String |
toString()
|
IVec2 |
transform(IVec2I xvec,
IVec2I yvec)
transform with transform vectors |
IVec2 |
transform(IVec2I xvec,
IVec2I yvec,
IVec2I translate)
transform with transform vectors |
IVec2 |
transform(IVec2 xvec,
IVec2 yvec)
transform with transform vectors |
IVec2 |
transform(IVec2 xvec,
IVec2 yvec,
IVec2 translate)
transform with transform vectors |
IVec2 |
unit()
unitize (normalize) vector |
double |
x()
|
double |
y()
|
IVec2 |
zero()
setting all zero |
| Methods inherited from class igeo.IParameterObject |
|---|
createObject, parent, parent |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public double x
public double y
| Constructor Detail |
|---|
public IVec2()
public IVec2(double x,
double y)
public IVec2(IVec2 v)
public IVec2(IVec2I v)
public IVec2(IDoubleI x,
IDoubleI y)
public IVec2(IVecI v)
public IVec2(IServerI s)
public IVec2(IServerI s,
double x,
double y)
public IVec2(IServerI s,
IVec2 v)
public IVec2(IServerI s,
IVec2I v)
public IVec2(IServerI s,
IDoubleI x,
IDoubleI y)
public IVec2(IServerI s,
IVecI v)
| Method Detail |
|---|
public double x()
x in interface IVec2Ipublic double y()
y in interface IVec2Ipublic IVec2 get()
get in interface IParameterget in interface IVec2Iget in interface IVec2Oppublic IVec2 dup()
dup in interface IVec2Ipublic IVec to3d()
to3d in interface IVec2Ipublic IVec to3d(double z)
to3d in interface IVec2Ipublic IVec to3d(IDoubleI z)
to3d in interface IVec2Ipublic IVec4 to4d()
to4d in interface IVec2I
public IVec4 to4d(double z,
double w)
to4d in interface IVec2I
public IVec4 to4d(IDoubleI z,
IDoubleI w)
to4d in interface IVec2Ipublic IDouble getX()
getX in interface IVec2Ipublic IDouble getY()
getY in interface IVec2I
public IVec2 set(double x,
double y)
set in interface IVec2Ipublic IVec2 set(IVec2 v)
public IVec2 set(IVec2I v)
set in interface IVec2I
public IVec2 set(IDoubleI x,
IDoubleI y)
set in interface IVec2I
public IVec2 add(double x,
double y)
add in interface IVec2I
public IVec2 add(IDoubleI x,
IDoubleI y)
add in interface IVec2Ipublic IVec2 add(IVec2 v)
public IVec2 add(IVec2I v)
add in interface IVec2I
public IVec2 sub(double x,
double y)
sub in interface IVec2I
public IVec2 sub(IDoubleI x,
IDoubleI y)
sub in interface IVec2Ipublic IVec2 sub(IVec2 v)
public IVec2 sub(IVec2I v)
sub in interface IVec2Ipublic IVec2 mul(double x)
mul in interface IVec2Ipublic IVec2 mul(IDouble v)
public IVec2 mul(IDoubleI v)
mul in interface IVec2Ipublic IVec2 div(double x)
div in interface IVec2Ipublic IVec2 div(IDouble v)
public IVec2 div(IDoubleI v)
div in interface IVec2Ipublic IVec2 neg()
neg in interface IVec2Ipublic IVec2 rev()
rev in interface IVec2Ipublic IVec2 flip()
flip in interface IVec2Ipublic IVec2 zero()
zero in interface IVec2I
public IVec2 add(IVec2 v,
double f)
public IVec2 add(IVec2I v,
double f)
add in interface IVec2I
public IVec2 add(IVec2I v,
IDoubleI f)
add in interface IVec2I
public IVec2 add(double f,
IVec2 v)
public IVec2 add(double f,
IVec2I v)
add in interface IVec2I
public IVec2 add(IDoubleI f,
IVec2I v)
add in interface IVec2Ipublic double dot(IVec2 v)
public double dot(double vx,
double vy)
dot in interface IVec2Ipublic double dot(IVec2I v)
dot in interface IVec2I
public double dot(ISwitchE e,
IVec2I v)
dot in interface IVec2I
public IDouble dot(ISwitchR r,
IVec2I v)
dot in interface IVec2Ipublic IVec cross(IVec2 v)
public IVec cross(double vx,
double vy)
cross in interface IVec2Ipublic IVec cross(IVec2I v)
cross in interface IVec2Ipublic double len()
IVec2I
len in interface IVec2Ipublic double len(ISwitchE e)
IVec2I
len in interface IVec2Ipublic IDouble len(ISwitchR r)
IVec2I
len in interface IVec2Ipublic double len2()
len2 in interface IVec2Ipublic double len2(ISwitchE e)
len2 in interface IVec2Ipublic IDouble len2(ISwitchR r)
len2 in interface IVec2Ipublic IVec2 len(IDoubleI l)
len in interface IVec2Ipublic IVec2 len(double l)
len in interface IVec2Ipublic IVec2 unit()
unit in interface IVec2Ipublic IVec2 ortho()
ortho in interface IVec2Ipublic double dist(IVec2 v)
public double dist(double vx,
double vy)
dist in interface IVec2Ipublic double dist(IVec2I v)
dist in interface IVec2I
public double dist(ISwitchE e,
IVec2I v)
dist in interface IVec2I
public IDouble dist(ISwitchR r,
IVec2I v)
dist in interface IVec2Ipublic double dist2(IVec2 v)
public double dist2(double vx,
double vy)
dist2 in interface IVec2Ipublic double dist2(IVec2I v)
dist2 in interface IVec2I
public double dist2(ISwitchE e,
IVec2I v)
dist2 in interface IVec2I
public IDouble dist2(ISwitchR r,
IVec2I v)
dist2 in interface IVec2Ipublic boolean eq(IVec2 v)
public boolean eq(double vx,
double vy)
eq in interface IVec2Ipublic boolean eq(IVec2I v)
eq in interface IVec2I
public boolean eq(ISwitchE e,
IVec2I v)
eq in interface IVec2I
public IBool eq(ISwitchR r,
IVec2I v)
eq in interface IVec2I
public boolean eq(IVec2 v,
double tolerance)
public boolean eq(double vx,
double vy,
double tolerance)
eq in interface IVec2I
public boolean eq(IVec2I v,
double tolerance)
eq in interface IVec2I
public boolean eq(ISwitchE e,
IVec2I v,
double tolerance)
eq in interface IVec2I
public IBool eq(ISwitchR r,
IVec2I v,
IDoubleI tolerance)
eq in interface IVec2Ipublic boolean eqX(IVec2 v)
public boolean eqY(IVec2 v)
public boolean eqX(double vx)
eqX in interface IVec2Ipublic boolean eqY(double vy)
eqY in interface IVec2Ipublic boolean eqX(IVec2I v)
eqX in interface IVec2Ipublic boolean eqY(IVec2I v)
eqY in interface IVec2I
public boolean eqX(ISwitchE e,
IVec2I v)
eqX in interface IVec2I
public boolean eqY(ISwitchE e,
IVec2I v)
eqY in interface IVec2I
public IBool eqX(ISwitchR r,
IVec2I v)
eqX in interface IVec2I
public IBool eqY(ISwitchR r,
IVec2I v)
eqY in interface IVec2I
public boolean eqX(IVec2 v,
double tolerance)
public boolean eqY(IVec2 v,
double tolerance)
public boolean eqX(double vx,
double tolerance)
eqX in interface IVec2I
public boolean eqY(double vy,
double tolerance)
eqY in interface IVec2I
public boolean eqX(IVec2I v,
double tolerance)
eqX in interface IVec2I
public boolean eqY(IVec2I v,
double tolerance)
eqY in interface IVec2I
public boolean eqX(ISwitchE e,
IVec2I v,
double tolerance)
eqX in interface IVec2I
public boolean eqY(ISwitchE e,
IVec2I v,
double tolerance)
eqY in interface IVec2I
public IBool eqX(ISwitchR r,
IVec2I v,
IDoubleI tolerance)
eqX in interface IVec2I
public IBool eqY(ISwitchR r,
IVec2I v,
IDoubleI tolerance)
eqY in interface IVec2Ipublic double angle(IVec2 v)
public double angle(double vx,
double vy)
IVec2I
angle in interface IVec2Ipublic double angle(IVec2I v)
IVec2I
angle in interface IVec2I
public double angle(ISwitchE e,
IVec2I v)
IVec2I
angle in interface IVec2I
public IDouble angle(ISwitchR r,
IVec2I v)
IVec2I
angle in interface IVec2Ipublic IVec2 rot(double angle)
rot in interface IVec2Ipublic IVec2 rot(IDoubleI angle)
rot in interface IVec2I
public IVec2 rot(IVec2 center,
double angle)
public IVec2 rot(double centerX,
double centerY,
double angle)
rot in interface IVec2I
public IVec2 rot(IVec2I center,
double angle)
rot in interface IVec2I
public IVec2 rot(IVec2I center,
IDoubleI angle)
rot in interface IVec2Ipublic IVec2 rot(IVec2 destDir)
public IVec2 rot(IVec2I destDir)
rot in interface IVec2I
public IVec2 rot(IVec2 center,
IVec2 destPt)
public IVec2 rot(IVec2I center,
IVec2I destPt)
rot in interface IVec2Ipublic IVec2 scale(double f)
scale in interface IVec2Ipublic IVec2 scale(IDoubleI f)
scale in interface IVec2I
public IVec2 scale(IVec2 center,
double f)
public IVec2 scale(double centerX,
double centerY,
double f)
scale in interface IVec2I
public IVec2 scale(IVec2I center,
double f)
scale in interface IVec2I
public IVec2 scale(IVec2I center,
IDoubleI f)
scale in interface IVec2Ipublic IVec2 ref(IVec2 lineDir)
lineDir - direction of reflection line
public IVec2 ref(double lineX,
double lineY)
ref in interface IVec2Ipublic IVec2 ref(IVec2I lineDir)
ref in interface IVec2IlineDir - direction of reflection line
public IVec2 ref(IVec2 linePt,
IVec2 lineDir)
linePt - start point of reflection linelineDir - direction of reflection line
public IVec2 ref(double linePtX,
double linePtY,
double lineDirX,
double lineDirY)
ref in interface IVec2I
public IVec2 ref(IVec2I linePt,
IVec2I lineDir)
ref in interface IVec2IlinePt - start point of reflection linelineDir - direction of reflection linepublic IVec2 mirror(IVec2 lineDir)
lineDir - direction of reflection line
public IVec2 mirror(double lineX,
double lineY)
mirror in interface IVec2Ipublic IVec2 mirror(IVec2I lineDir)
mirror in interface IVec2IlineDir - direction of reflection line
public IVec2 mirror(IVec2 linePt,
IVec2 lineDir)
linePt - start point of reflection linelineDir - direction of reflection line
public IVec2 mirror(double linePtX,
double linePtY,
double lineDirX,
double lineDirY)
mirror in interface IVec2I
public IVec2 mirror(IVec2I linePt,
IVec2I lineDir)
mirror in interface IVec2IlinePt - start point of reflection linelineDir - direction of reflection line
public IVec2 transform(IVec2 xvec,
IVec2 yvec)
public IVec2 transform(IVec2I xvec,
IVec2I yvec)
transform in interface IVec2I
public IVec2 transform(IVec2 xvec,
IVec2 yvec,
IVec2 translate)
public IVec2 transform(IVec2I xvec,
IVec2I yvec,
IVec2I translate)
transform in interface IVec2Ipublic IVec2 dif(IVec2 v)
public IVec2 dif(double vx,
double vy)
dif in interface IVec2Ipublic IVec2 dif(IVec2I v)
dif in interface IVec2Ipublic IVec2 diff(IVec2 v)
public IVec2 diff(double vx,
double vy)
diff in interface IVec2Ipublic IVec2 diff(IVec2I v)
diff in interface IVec2Ipublic IVec2 mid(IVec2 v)
public IVec2 mid(double vx,
double vy)
mid in interface IVec2Ipublic IVec2 mid(IVec2I v)
mid in interface IVec2Ipublic IVec2 sum(IVec2 v)
public IVec2 sum(double vx,
double vy)
sum in interface IVec2Ipublic IVec2 sum(IVec2I v)
sum in interface IVec2Ipublic IVec2 sum(IVec2I... v)
sum in interface IVec2Ipublic IVec2 bisect(IVec2 v)
public IVec2 bisect(double vx,
double vy)
bisect in interface IVec2Ipublic IVec2 bisect(IVec2I v)
bisect in interface IVec2I
public IVec2 sum(IVec2 v2,
double w1,
double w2)
public IVec2 sum(IVec2I v2,
double w1,
double w2)
sum in interface IVec2I
public IVec2 sum(IVec2I v2,
IDoubleI w1,
IDoubleI w2)
sum in interface IVec2I
public IVec2 sum(IVec2 v2,
double w2)
public IVec2 sum(IVec2I v2,
double w2)
sum in interface IVec2I
public IVec2 sum(IVec2I v2,
IDoubleI w2)
sum in interface IVec2Ipublic IVec nml(IVec2 v)
public IVec nml(IVec2I v)
nml in interface IVec2I
public IVecI nml(double vx,
double vy)
nml in interface IVec2I
public IVecI nml(IVec2 pt1,
IVec2 pt2)
public IVecI nml(double vx1,
double vy1,
double vx2,
double vy2)
nml in interface IVec2I
public IVecI nml(IVec2I pt1,
IVec2I pt2)
nml in interface IVec2Ipublic boolean isParallel(IVec2I v)
public boolean isParallel(IVec2I v,
double angleReso)
public boolean isStraight(IVec2I v1,
IVec2I v2)
public boolean isStraight(IVec2I v1,
IVec2I v2,
double angleReso)
public static IVec2 intersect(IVec2I pt1,
IVec2I dir1,
IVec2I pt2,
IVec2I dir2)
public static IVec2 intersectYLine(IVec2 linePt,
IVec2 lineDir,
double xOfYLine)
public static IVec2 intersectXLine(IVec2 linePt,
IVec2 lineDir,
double yOfXLine)
public static IVec2 intersectSegment(IVec2I line1pt1,
IVec2I line1pt2,
IVec2I line2pt1,
IVec2I line2pt2)
public static IVec2 intersectPolyline(IVec2I p1,
IVec2I p2,
IVec2I[] pts,
boolean closed)
public static IVec2 intersectPolyline(IVec2I p1,
IVec2I p2,
IVec2I[] pts)
public static IVec2 intersectPolygon(IVec2I p1,
IVec2I p2,
IVec2I[] pts)
public static IVec2 intersectSegmentAndXLine(IVec2I linePt1,
IVec2I linePt2,
double y)
public static IVec2 intersectSegmentAndYLine(IVec2I linePt1,
IVec2I linePt2,
double x)
public static IVec2I[] removeStraightPoints(IVec2I[] pts,
boolean closed)
public static IVec2I[] removeDuplicatedPoints(IVec2I[] pts,
boolean closed)
public boolean isInside(IVec2I[] pts)
public boolean isInside(IVec2[] pts)
public java.lang.String toString()
toString in class java.lang.Object
public double distToLine(IVec2 pt1,
IVec2 pt2)
public boolean isOnLine(IVec2 pt1,
IVec2 pt2)
public boolean isBetween(IVec2I pt1,
IVec2I pt2)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||