|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectigeo.IParameterObject
igeo.IVec2f
public class IVec2f
Class of 2 dimensional vector in float.
Field Summary | |
---|---|
float |
x
|
float |
y
|
Fields inherited from class igeo.IParameterObject |
---|
parent |
Constructor Summary | |
---|---|
IVec2f()
|
|
IVec2f(double x,
double y)
|
|
IVec2f(float x,
float y)
|
|
IVec2f(IDoubleI x,
IDoubleI y)
|
|
IVec2f(IServerI s)
|
|
IVec2f(IServerI s,
double x,
double y)
|
|
IVec2f(IServerI s,
float x,
float y)
|
|
IVec2f(IServerI s,
IDoubleI x,
IDoubleI y)
|
|
IVec2f(IServerI s,
IVec2 v)
|
|
IVec2f(IServerI s,
IVec2f v)
|
|
IVec2f(IServerI s,
IVec2I v)
|
|
IVec2f(IVec2 v)
|
|
IVec2f(IVec2f v)
|
|
IVec2f(IVec2I v)
|
Method Summary | |
---|---|
IVec2f |
add(double x,
double y)
|
IVec2f |
add(float x,
float y)
|
IVec2f |
add(IDoubleI x,
IDoubleI y)
|
IVec2f |
add(IVec2 v)
|
IVec2f |
add(IVec2f v)
|
IVec2f |
add(IVec2f v,
float f)
scale add |
IVec2f |
add(IVec2I v)
|
IVec2f |
add(IVec2I v,
double f)
|
IVec2f |
add(IVec2I v,
IDoubleI f)
|
double |
angle(ISwitchE e,
IVec2I v)
|
IDouble |
angle(ISwitchR r,
IVec2I v)
|
double |
angle(IVec2 v)
|
float |
angle(IVec2f v)
|
double |
angle(IVec2I v)
|
IVec2f |
bisect(IVec2 v)
|
IVec2f |
bisect(IVec2f v)
|
IVec2f |
bisect(IVec2I v)
|
IVec |
cross(IVec2 v)
|
IVec |
cross(IVec2f v)
|
IVec |
cross(IVec2I v)
|
IVec2f |
diff(IVec2I v)
|
double |
dist(ISwitchE e,
IVec2I v)
|
IDouble |
dist(ISwitchR r,
IVec2I v)
|
double |
dist(IVec2 v)
|
double |
dist(IVec2f v)
|
double |
dist(IVec2I v)
distance |
double |
dist2(ISwitchE e,
IVec2I v)
|
IDouble |
dist2(ISwitchR r,
IVec2I v)
|
double |
dist2(IVec2 v)
|
double |
dist2(IVec2f v)
|
double |
dist2(IVec2I v)
squared distance |
IVec2f |
div(double x)
|
IVec2f |
div(float x)
|
IVec2f |
div(IDoubleI v)
|
double |
dot(ISwitchE e,
IVec2I v)
|
IDouble |
dot(ISwitchR r,
IVec2I v)
|
double |
dot(IVec2 v)
|
double |
dot(IVec2f v)
|
double |
dot(IVec2I v)
|
IVec2f |
dup()
|
boolean |
eq(ISwitchE e,
IVec2I v)
|
boolean |
eq(ISwitchE e,
IVec2I v,
double resolution)
|
IBool |
eq(ISwitchR r,
IVec2I v)
|
IBool |
eq(ISwitchR r,
IVec2I v,
IDoubleI resolution)
|
boolean |
eq(IVec2 v)
|
boolean |
eq(IVec2 v,
double resolution)
|
boolean |
eq(IVec2f v)
|
boolean |
eq(IVec2f v,
double resolution)
|
boolean |
eq(IVec2I v)
whether location is same or not |
boolean |
eq(IVec2I v,
double resolution)
|
boolean |
eqX(ISwitchE e,
IVec2I v)
|
boolean |
eqX(ISwitchE e,
IVec2I v,
double resolution)
|
IBool |
eqX(ISwitchR r,
IVec2I v)
|
IBool |
eqX(ISwitchR r,
IVec2I v,
IDoubleI resolution)
|
boolean |
eqX(IVec2 v)
|
boolean |
eqX(IVec2 v,
double resolution)
|
boolean |
eqX(IVec2f v)
|
boolean |
eqX(IVec2f v,
double resolution)
|
boolean |
eqX(IVec2I v)
|
boolean |
eqX(IVec2I v,
double resolution)
|
boolean |
eqY(ISwitchE e,
IVec2I v)
|
boolean |
eqY(ISwitchE e,
IVec2I v,
double resolution)
|
IBool |
eqY(ISwitchR r,
IVec2I v)
|
IBool |
eqY(ISwitchR r,
IVec2I v,
IDoubleI resolution)
|
boolean |
eqY(IVec2 v)
|
boolean |
eqY(IVec2 v,
double resolution)
|
boolean |
eqY(IVec2f v)
|
boolean |
eqY(IVec2f v,
double resolution)
|
boolean |
eqY(IVec2I v)
|
boolean |
eqY(IVec2I v,
double resolution)
|
IVec2 |
get()
|
IDouble |
getX()
|
IDouble |
getY()
|
double |
len()
|
IVec2f |
len(double l)
|
IVec2f |
len(float l)
|
IVec2f |
len(IDoubleI l)
|
double |
len(ISwitchE e)
|
IDouble |
len(ISwitchR r)
|
double |
len2()
|
double |
len2(ISwitchE e)
|
IDouble |
len2(ISwitchR r)
|
IVec2f |
mid(IVec2I v)
|
IVec2f |
mirror(IVec2 lineDir)
|
IVec2f |
mirror(IVec2f lineDir)
|
IVec2f |
mirror(IVec2f linePt,
IVec2 lineDir)
|
IVec2f |
mirror(IVec2I lineDir)
|
IVec2f |
mirror(IVec2I linePt,
IVec2I lineDir)
|
IVec2f |
mirror(IVec2 linePt,
IVec2 lineDir)
|
IVec2f |
mul(double x)
|
IVec2f |
mul(float x)
|
IVec2f |
mul(IDoubleI v)
|
IVec2f |
neg()
|
IVec2f |
ortho()
rotate vector in Pi/2 |
IVec2f |
ref(IVec2 lineDir)
|
IVec2f |
ref(IVec2f lineDir)
reflect (mirror) 2 dimensionally to the other side of the line |
IVec2f |
ref(IVec2f linePt,
IVec2 lineDir)
|
IVec2f |
ref(IVec2I lineDir)
reflect (mirror) 2 dimensionally to the other side of the line |
IVec2f |
ref(IVec2I linePt,
IVec2I lineDir)
|
IVec2f |
ref(IVec2 linePt,
IVec2 lineDir)
|
IVec2f |
rev()
|
IVec2f |
rot(double angle)
|
IVec2f |
rot(float angle)
|
IVec2f |
rot(IDoubleI angle)
|
IVec2f |
rot(IVec2 destDir)
|
IVec2f |
rot(IVec2 center,
double angle)
|
IVec2f |
rot(IVec2f destDir)
|
IVec2f |
rot(IVec2f center,
double angle)
|
IVec2f |
rot(IVec2f center,
IVec2f destPt)
|
IVec2f |
rot(IVec2I destDir)
|
IVec2f |
rot(IVec2I center,
double angle)
|
IVec2f |
rot(IVec2I center,
IDoubleI angle)
|
IVec2f |
rot(IVec2I center,
IVec2I destPt)
|
IVec2f |
rot(IVec2 center,
IVec2 destPt)
|
IVec2f |
scale(double f)
|
IVec2f |
scale(IDoubleI f)
|
IVec2f |
scale(IVec2 center,
double f)
|
IVec2f |
scale(IVec2f center,
double f)
|
IVec2f |
scale(IVec2I center,
double f)
|
IVec2f |
scale(IVec2I center,
IDoubleI f)
|
IVec2f |
set(double x,
double y)
|
IVec2f |
set(float x,
float y)
|
IVec2f |
set(IDoubleI x,
IDoubleI y)
|
IVec2f |
set(IVec2 v)
|
IVec2f |
set(IVec2f v)
|
IVec2f |
set(IVec2I v)
|
IVec2f |
sub(double x,
double y)
|
IVec2f |
sub(float x,
float y)
|
IVec2f |
sub(IDoubleI x,
IDoubleI y)
|
IVec2f |
sub(IVec2 v)
|
IVec2f |
sub(IVec2f v)
|
IVec2f |
sub(IVec2I v)
|
IVec2f |
sum(IVec2 v2,
double w2)
|
IVec2f |
sum(IVec2 v2,
double w1,
double w2)
|
IVec2f |
sum(IVec2f v2,
double w2)
|
IVec2f |
sum(IVec2f v2,
double w1,
double w2)
weighted sum |
IVec2f |
sum(IVec2I... v)
|
IVec2f |
sum(IVec2I v)
|
IVec2f |
sum(IVec2I v2,
double w2)
|
IVec2f |
sum(IVec2I v2,
double w1,
double w2)
weighted sum |
IVec2f |
sum(IVec2I v2,
IDoubleI w2)
|
IVec2f |
sum(IVec2I v2,
IDoubleI w1,
IDoubleI w2)
|
IVec |
to3d()
|
IVec |
to3d(double z)
|
IVec |
to3d(IDoubleI z)
|
IVec4 |
to4d()
|
IVec4 |
to4d(double z,
double w)
|
IVec4 |
to4d(IDoubleI z,
IDoubleI w)
|
IVec2f |
transform(IVec2f xvec,
IVec2f yvec)
|
IVec2f |
transform(IVec2f xvec,
IVec2f yvec,
IVec2f translate)
|
IVec2f |
transform(IVec2I xvec,
IVec2I yvec)
|
IVec2f |
transform(IVec2I xvec,
IVec2I yvec,
IVec2I translate)
|
IVec2f |
transform(IVec2 xvec,
IVec2 yvec)
|
IVec2f |
transform(IVec2 xvec,
IVec2 yvec,
IVec2 translate)
|
IVec2f |
unit()
normalize (unitize) vector |
double |
x()
|
double |
y()
|
Methods inherited from class igeo.IParameterObject |
---|
createObject, parent, parent |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public float x
public float y
Constructor Detail |
---|
public IVec2f()
public IVec2f(float x, float y)
public IVec2f(double x, double y)
public IVec2f(IVec2f v)
public IVec2f(IVec2 v)
public IVec2f(IVec2I v)
public IVec2f(IDoubleI x, IDoubleI y)
public IVec2f(IServerI s)
public IVec2f(IServerI s, float x, float y)
public IVec2f(IServerI s, double x, double y)
public IVec2f(IServerI s, IVec2f v)
public IVec2f(IServerI s, IVec2 v)
public IVec2f(IServerI s, IVec2I v)
public IVec2f(IServerI s, IDoubleI x, IDoubleI y)
Method Detail |
---|
public double x()
x
in interface IVec2I
public double y()
y
in interface IVec2I
public IVec2 get()
get
in interface IParameter
get
in interface IVec2I
get
in interface IVec2Op
public IVec2f dup()
dup
in interface IVec2I
public IVec to3d()
to3d
in interface IVec2I
public IVec to3d(double z)
to3d
in interface IVec2I
public IVec to3d(IDoubleI z)
to3d
in interface IVec2I
public 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 IVec2I
public IDouble getX()
getX
in interface IVec2I
public IDouble getY()
getY
in interface IVec2I
public IVec2f set(float x, float y)
public IVec2f set(double x, double y)
set
in interface IVec2I
public IVec2f set(IVec2f v)
public IVec2f set(IVec2 v)
public IVec2f set(IVec2I v)
set
in interface IVec2I
public IVec2f set(IDoubleI x, IDoubleI y)
set
in interface IVec2I
public IVec2f add(float x, float y)
public IVec2f add(double x, double y)
add
in interface IVec2I
public IVec2f add(IDoubleI x, IDoubleI y)
add
in interface IVec2I
public IVec2f add(IVec2f v)
public IVec2f add(IVec2 v)
public IVec2f add(IVec2I v)
add
in interface IVec2I
public IVec2f sub(float x, float y)
public IVec2f sub(double x, double y)
sub
in interface IVec2I
public IVec2f sub(IDoubleI x, IDoubleI y)
sub
in interface IVec2I
public IVec2f sub(IVec2f v)
public IVec2f sub(IVec2 v)
public IVec2f sub(IVec2I v)
sub
in interface IVec2I
public IVec2f mul(float x)
public IVec2f mul(double x)
mul
in interface IVec2I
public IVec2f mul(IDoubleI v)
mul
in interface IVec2I
public IVec2f div(float x)
public IVec2f div(double x)
div
in interface IVec2I
public IVec2f div(IDoubleI v)
div
in interface IVec2I
public IVec2f neg()
neg
in interface IVec2I
public IVec2f rev()
rev
in interface IVec2I
public IVec2f add(IVec2f v, float f)
public IVec2f add(IVec2I v, double f)
add
in interface IVec2I
public IVec2f add(IVec2I v, IDoubleI f)
add
in interface IVec2I
public double dot(IVec2f v)
public double dot(IVec2 v)
public 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 IVec2I
public IVec cross(IVec2f v)
public IVec cross(IVec2 v)
public IVec cross(IVec2I v)
cross
in interface IVec2I
public double len()
len
in interface IVec2I
public double len(ISwitchE e)
len
in interface IVec2I
public IDouble len(ISwitchR r)
len
in interface IVec2I
public double len2()
len2
in interface IVec2I
public double len2(ISwitchE e)
len2
in interface IVec2I
public IDouble len2(ISwitchR r)
len2
in interface IVec2I
public IVec2f len(IDoubleI l)
len
in interface IVec2I
public IVec2f len(double l)
len
in interface IVec2I
public IVec2f len(float l)
public IVec2f unit()
unit
in interface IVec2I
public IVec2f ortho()
ortho
in interface IVec2I
public double dist(IVec2I v)
IVec2I
dist
in interface IVec2I
public double dist(IVec2 v)
public double dist(IVec2f v)
public double dist(ISwitchE e, IVec2I v)
dist
in interface IVec2I
public IDouble dist(ISwitchR r, IVec2I v)
dist
in interface IVec2I
public double dist2(IVec2I v)
IVec2I
dist2
in interface IVec2I
public double dist2(IVec2 v)
public double dist2(IVec2f v)
public double dist2(ISwitchE e, IVec2I v)
dist2
in interface IVec2I
public IDouble dist2(ISwitchR r, IVec2I v)
dist2
in interface IVec2I
public boolean eq(IVec2I v)
IVec2I
eq
in interface IVec2I
public boolean eq(IVec2 v)
public boolean eq(IVec2f v)
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 resolution)
public boolean eq(IVec2f v, double resolution)
public boolean eq(IVec2I v, double resolution)
eq
in interface IVec2I
public boolean eq(ISwitchE e, IVec2I v, double resolution)
eq
in interface IVec2I
public IBool eq(ISwitchR r, IVec2I v, IDoubleI resolution)
eq
in interface IVec2I
public boolean eqX(IVec2f v)
public boolean eqY(IVec2f v)
public boolean eqX(IVec2 v)
public boolean eqY(IVec2 v)
public boolean eqX(IVec2I v)
eqX
in interface IVec2I
public 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(IVec2f v, double resolution)
public boolean eqY(IVec2f v, double resolution)
public boolean eqX(IVec2 v, double resolution)
public boolean eqY(IVec2 v, double resolution)
public boolean eqX(IVec2I v, double resolution)
eqX
in interface IVec2I
public boolean eqY(IVec2I v, double resolution)
eqY
in interface IVec2I
public boolean eqX(ISwitchE e, IVec2I v, double resolution)
eqX
in interface IVec2I
public boolean eqY(ISwitchE e, IVec2I v, double resolution)
eqY
in interface IVec2I
public IBool eqX(ISwitchR r, IVec2I v, IDoubleI resolution)
eqX
in interface IVec2I
public IBool eqY(ISwitchR r, IVec2I v, IDoubleI resolution)
eqY
in interface IVec2I
public double angle(IVec2 v)
public float angle(IVec2f v)
public double angle(IVec2I v)
angle
in interface IVec2I
public double angle(ISwitchE e, IVec2I v)
angle
in interface IVec2I
public IDouble angle(ISwitchR r, IVec2I v)
angle
in interface IVec2I
public IVec2f rot(double angle)
rot
in interface IVec2I
public IVec2f rot(float angle)
public IVec2f rot(IDoubleI angle)
rot
in interface IVec2I
public IVec2f rot(IVec2f center, double angle)
public IVec2f rot(IVec2 center, double angle)
public IVec2f rot(IVec2I center, double angle)
rot
in interface IVec2I
public IVec2f rot(IVec2I center, IDoubleI angle)
rot
in interface IVec2I
public IVec2f rot(IVec2f destDir)
public IVec2f rot(IVec2 destDir)
public IVec2f rot(IVec2I destDir)
rot
in interface IVec2I
public IVec2f rot(IVec2f center, IVec2f destPt)
public IVec2f rot(IVec2 center, IVec2 destPt)
public IVec2f rot(IVec2I center, IVec2I destPt)
rot
in interface IVec2I
public IVec2f scale(double f)
scale
in interface IVec2I
public IVec2f scale(IDoubleI f)
scale
in interface IVec2I
public IVec2f scale(IVec2f center, double f)
public IVec2f scale(IVec2 center, double f)
public IVec2f scale(IVec2I center, double f)
scale
in interface IVec2I
public IVec2f scale(IVec2I center, IDoubleI f)
scale
in interface IVec2I
public IVec2f ref(IVec2f lineDir)
lineDir
- direction of reflection linepublic IVec2f ref(IVec2 lineDir)
public IVec2f ref(IVec2I lineDir)
IVec2I
ref
in interface IVec2I
public IVec2f ref(IVec2f linePt, IVec2 lineDir)
public IVec2f ref(IVec2 linePt, IVec2 lineDir)
public IVec2f ref(IVec2I linePt, IVec2I lineDir)
ref
in interface IVec2I
public IVec2f mirror(IVec2f lineDir)
public IVec2f mirror(IVec2 lineDir)
public IVec2f mirror(IVec2I lineDir)
mirror
in interface IVec2I
public IVec2f mirror(IVec2f linePt, IVec2 lineDir)
public IVec2f mirror(IVec2 linePt, IVec2 lineDir)
public IVec2f mirror(IVec2I linePt, IVec2I lineDir)
mirror
in interface IVec2I
public IVec2f transform(IVec2f xvec, IVec2f yvec)
public IVec2f transform(IVec2 xvec, IVec2 yvec)
public IVec2f transform(IVec2I xvec, IVec2I yvec)
transform
in interface IVec2I
public IVec2f transform(IVec2f xvec, IVec2f yvec, IVec2f translate)
public IVec2f transform(IVec2 xvec, IVec2 yvec, IVec2 translate)
public IVec2f transform(IVec2I xvec, IVec2I yvec, IVec2I translate)
transform
in interface IVec2I
public IVec2f diff(IVec2I v)
diff
in interface IVec2I
public IVec2f mid(IVec2I v)
mid
in interface IVec2I
public IVec2f sum(IVec2I v)
sum
in interface IVec2I
public IVec2f sum(IVec2I... v)
sum
in interface IVec2I
public IVec2f bisect(IVec2f v)
public IVec2f bisect(IVec2 v)
public IVec2f bisect(IVec2I v)
bisect
in interface IVec2I
public IVec2f sum(IVec2f v2, double w1, double w2)
public IVec2f sum(IVec2 v2, double w1, double w2)
public IVec2f sum(IVec2I v2, double w1, double w2)
IVec2I
sum
in interface IVec2I
public IVec2f sum(IVec2I v2, IDoubleI w1, IDoubleI w2)
sum
in interface IVec2I
public IVec2f sum(IVec2f v2, double w2)
public IVec2f sum(IVec2 v2, double w2)
public IVec2f sum(IVec2I v2, double w2)
sum
in interface IVec2I
public IVec2f sum(IVec2I v2, IDoubleI w2)
sum
in interface IVec2I
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |