igeo
Class IVec2R

java.lang.Object
  extended by igeo.IParameterObject
      extended by igeo.IVec2R
All Implemented Interfaces:
IParameter, IReferenceParameter, ISubobject, IVec2I, IVec2Op

public class IVec2R
extends IParameterObject
implements IVec2I, IReferenceParameter

Reference class of 2 dimensional vector to be used as IParameterObject.


Nested Class Summary
static class IVec2R.Add
           
static class IVec2R.Angle
           
static class IVec2R.Cross
           
static class IVec2R.Dist
           
static class IVec2R.Dist2
           
static class IVec2R.Div
           
static class IVec2R.Dot
           
static class IVec2R.Eq
           
static class IVec2R.EqX
           
static class IVec2R.EqY
           
static class IVec2R.FromXY
           
static class IVec2R.Len
           
static class IVec2R.Len2
           
static class IVec2R.Mul
           
static class IVec2R.Neg
           
static class IVec2R.Ortho
           
static class IVec2R.Ref
           
static class IVec2R.Rot
           
static class IVec2R.SetLen
           
static class IVec2R.Sub
           
static class IVec2R.ToVec2
           
static class IVec2R.ToVec3
           
static class IVec2R.ToVec4
           
static class IVec2R.TransformVec2
           
static class IVec2R.TransformVec3
           
static class IVec2R.Unit
           
static class IVec2R.X
           
static class IVec2R.Y
           
 
Field Summary
protected  IVec2Op op
           
 
Fields inherited from class igeo.IParameterObject
parent
 
Constructor Summary
IVec2R(double x, double y)
           
IVec2R(IDoubleI x, IDoubleI y)
           
IVec2R(IServerI s, double x, double y)
           
IVec2R(IServerI s, IDoubleI x, IDoubleI y)
           
IVec2R(IServerI s, IVec2Op v)
           
IVec2R(IVec2Op v)
           
 
Method Summary
 IVec2R add(double x, double y)
           
 IVec2R add(double f, IVec2I v)
          scale add alias
 IVec2R add(IDoubleI x, IDoubleI y)
           
 IVec2R add(IDoubleI f, IVec2I v)
           
 IVec2R add(IVec2I u)
           
 IVec2R add(IVec2I v, double f)
          scale add
 IVec2R add(IVec2I v, IDoubleI f)
           
 double angle(ISwitchE e, IVec2I u)
           
 IDoubleR angle(ISwitchR r, IVec2I u)
           
 double angle(IVec2I u)
           
 IVec2R bisect(IVec2I v)
           
 IVecR cross(IVec2I u)
           
 IVec2R dif(IVec2I v)
           
 IVec2R diff(IVec2I v)
           
 double dist(ISwitchE e, IVec2I v)
           
 IDoubleR dist(ISwitchR r, IVec2I v)
           
 double dist(IVec2I v)
          distance
 double dist2(ISwitchE e, IVec2I v)
           
 IDoubleR dist2(ISwitchR r, IVec2I v)
           
 double dist2(IVec2I v)
          squared distance
 IVec2R div(double u)
           
 IVec2R div(IDoubleI u)
           
 double dot(ISwitchE e, IVec2I u)
           
 IDoubleR dot(ISwitchR r, IVec2I u)
           
 double dot(IVec2I u)
           
 IVec2R dup()
           
 boolean eq(ISwitchE e, IVec2I v)
           
 boolean eq(ISwitchE e, IVec2I v, double resolution)
           
 IBoolR eq(ISwitchR r, IVec2I v)
           
 IBoolR eq(ISwitchR r, IVec2I v, IDoubleI 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)
           
 IBoolR eqX(ISwitchR r, IVec2I v)
           
 IBoolR eqX(ISwitchR r, IVec2I v, IDoubleI 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)
           
 IBoolR eqY(ISwitchR r, IVec2I v)
           
 IBoolR eqY(ISwitchR r, IVec2I v, IDoubleI resolution)
           
 boolean eqY(IVec2I v)
           
 boolean eqY(IVec2I v, double resolution)
           
 IVec2R flip()
          alias of neg()
 IVec2 get()
           
 IDoubleR getX()
           
 IDoubleR getY()
           
 double len()
           
 IVec2R len(double l)
           
 IVec2R len(IDoubleI l)
           
 double len(ISwitchE e)
           
 IDoubleR len(ISwitchR r)
           
 double len2()
           
 double len2(ISwitchE e)
           
 IDoubleR len2(ISwitchR r)
           
 IVec2R mid(IVec2I v)
           
 IVec2R mirror(IVec2I lineDir)
           
 IVec2R mirror(IVec2I linePt, IVec2I lineDir)
           
 IVec2R mul(double u)
           
 IVec2R mul(IDoubleI u)
           
 IVec2R neg()
           
 IVec2Op operator()
           
 IVec2R ortho()
          rotate 90 deg
 IVec2R ref(IVec2I lineDir)
          reflect (mirror) 2 dimensionally to the other side of the line
 IVec2R ref(IVec2I linePt, IVec2I lineDir)
           
 IVec2R rev()
          alias of neg()
 IVec2R rot(double angle)
           
 IVec2R rot(IDoubleI angle)
           
 IVec2R rot(IVec2I destDir)
           
 IVec2R rot(IVec2I center, double angle)
           
 IVec2R rot(IVec2I center, IDoubleI angle)
           
 IVec2R rot(IVec2I center, IVec2I destPt)
           
 IVec2R scale(double f)
           
 IVec2R scale(IDoubleI f)
           
 IVec2R scale(IVec2I center, double f)
           
 IVec2R scale(IVec2I center, IDoubleI f)
           
 IVec2R set(double x, double y)
           
 IVec2R set(IDoubleI x, IDoubleI y)
           
 IVec2R set(IVec2I u)
           
 IVec2R sub(double x, double y)
           
 IVec2R sub(IDoubleI x, IDoubleI y)
           
 IVec2R sub(IVec2I u)
           
 IVec2R sum(IVec2I... v)
           
 IVec2R sum(IVec2I v)
           
 IVec2R sum(IVec2I v2, double w2)
           
 IVec2R sum(IVec2I v2, double w1, double w2)
          weighted sum
 IVec2R sum(IVec2I v2, IDoubleI w2)
           
 IVec2R sum(IVec2I v2, IDoubleI w1, IDoubleI w2)
           
 IVecR to3d()
           
 IVecR to3d(double z)
           
 IVecR to3d(IDoubleI z)
           
 IVec4R to4d()
           
 IVec4R to4d(double z, double w)
           
 IVec4R to4d(IDoubleI z, IDoubleI w)
           
 IVec2R transform(IVec2I xvec, IVec2I yvec)
           
 IVec2R transform(IVec2I xvec, IVec2I yvec, IVec2I translate)
           
 IVec2R unit()
           
 double x()
           
 double y()
           
 IVec2R 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, toString, wait, wait, wait
 

Field Detail

op

protected IVec2Op op
Constructor Detail

IVec2R

public IVec2R(IVec2Op v)

IVec2R

public IVec2R(double x,
              double y)

IVec2R

public IVec2R(IDoubleI x,
              IDoubleI y)

IVec2R

public IVec2R(IServerI s,
              IVec2Op v)

IVec2R

public IVec2R(IServerI s,
              double x,
              double y)

IVec2R

public IVec2R(IServerI s,
              IDoubleI x,
              IDoubleI y)
Method Detail

x

public double x()
Specified by:
x in interface IVec2I

y

public double y()
Specified by:
y in interface IVec2I

get

public IVec2 get()
Specified by:
get in interface IParameter
Specified by:
get in interface IVec2I
Specified by:
get in interface IVec2Op

getX

public IDoubleR getX()
Specified by:
getX in interface IVec2I

getY

public IDoubleR getY()
Specified by:
getY in interface IVec2I

operator

public IVec2Op operator()
Specified by:
operator in interface IReferenceParameter

dup

public IVec2R dup()
Specified by:
dup in interface IVec2I

to3d

public IVecR to3d()
Specified by:
to3d in interface IVec2I

to3d

public IVecR to3d(double z)
Specified by:
to3d in interface IVec2I

to3d

public IVecR to3d(IDoubleI z)
Specified by:
to3d in interface IVec2I

to4d

public IVec4R to4d()
Specified by:
to4d in interface IVec2I

to4d

public IVec4R to4d(double z,
                   double w)
Specified by:
to4d in interface IVec2I

to4d

public IVec4R to4d(IDoubleI z,
                   IDoubleI w)
Specified by:
to4d in interface IVec2I

set

public IVec2R set(IVec2I u)
Specified by:
set in interface IVec2I

set

public IVec2R set(double x,
                  double y)
Specified by:
set in interface IVec2I

set

public IVec2R set(IDoubleI x,
                  IDoubleI y)
Specified by:
set in interface IVec2I

add

public IVec2R add(double x,
                  double y)
Specified by:
add in interface IVec2I

add

public IVec2R add(IDoubleI x,
                  IDoubleI y)
Specified by:
add in interface IVec2I

add

public IVec2R add(IVec2I u)
Specified by:
add in interface IVec2I

sub

public IVec2R sub(double x,
                  double y)
Specified by:
sub in interface IVec2I

sub

public IVec2R sub(IDoubleI x,
                  IDoubleI y)
Specified by:
sub in interface IVec2I

sub

public IVec2R sub(IVec2I u)
Specified by:
sub in interface IVec2I

mul

public IVec2R mul(IDoubleI u)
Specified by:
mul in interface IVec2I

mul

public IVec2R mul(double u)
Specified by:
mul in interface IVec2I

div

public IVec2R div(IDoubleI u)
Specified by:
div in interface IVec2I

div

public IVec2R div(double u)
Specified by:
div in interface IVec2I

neg

public IVec2R neg()
Specified by:
neg in interface IVec2I

rev

public IVec2R rev()
alias of neg()

Specified by:
rev in interface IVec2I

flip

public IVec2R flip()
alias of neg()

Specified by:
flip in interface IVec2I

zero

public IVec2R zero()
setting all zero

Specified by:
zero in interface IVec2I

add

public IVec2R add(IVec2I v,
                  double f)
scale add

Specified by:
add in interface IVec2I

add

public IVec2R add(IVec2I v,
                  IDoubleI f)
Specified by:
add in interface IVec2I

add

public IVec2R add(double f,
                  IVec2I v)
scale add alias

Specified by:
add in interface IVec2I

add

public IVec2R add(IDoubleI f,
                  IVec2I v)
Specified by:
add in interface IVec2I

dot

public double dot(IVec2I u)
Specified by:
dot in interface IVec2I

dot

public double dot(ISwitchE e,
                  IVec2I u)
Specified by:
dot in interface IVec2I

dot

public IDoubleR dot(ISwitchR r,
                    IVec2I u)
Specified by:
dot in interface IVec2I

cross

public IVecR cross(IVec2I u)
Specified by:
cross in interface IVec2I

len

public double len()
Specified by:
len in interface IVec2I

len

public double len(ISwitchE e)
Specified by:
len in interface IVec2I

len

public IDoubleR len(ISwitchR r)
Specified by:
len in interface IVec2I

len2

public double len2()
Specified by:
len2 in interface IVec2I

len2

public double len2(ISwitchE e)
Specified by:
len2 in interface IVec2I

len2

public IDoubleR len2(ISwitchR r)
Specified by:
len2 in interface IVec2I

len

public IVec2R len(IDoubleI l)
Specified by:
len in interface IVec2I

len

public IVec2R len(double l)
Specified by:
len in interface IVec2I

unit

public IVec2R unit()
Specified by:
unit in interface IVec2I

ortho

public IVec2R ortho()
Description copied from interface: IVec2I
rotate 90 deg

Specified by:
ortho in interface IVec2I

dist

public double dist(IVec2I v)
Description copied from interface: IVec2I
distance

Specified by:
dist in interface IVec2I

dist

public double dist(ISwitchE e,
                   IVec2I v)
Specified by:
dist in interface IVec2I

dist

public IDoubleR dist(ISwitchR r,
                     IVec2I v)
Specified by:
dist in interface IVec2I

dist2

public double dist2(IVec2I v)
squared distance

Specified by:
dist2 in interface IVec2I

dist2

public double dist2(ISwitchE e,
                    IVec2I v)
Specified by:
dist2 in interface IVec2I

dist2

public IDoubleR dist2(ISwitchR r,
                      IVec2I v)
Specified by:
dist2 in interface IVec2I

eq

public boolean eq(IVec2I v)
whether location is same or not

Specified by:
eq in interface IVec2I

eq

public boolean eq(ISwitchE e,
                  IVec2I v)
Specified by:
eq in interface IVec2I

eq

public IBoolR eq(ISwitchR r,
                 IVec2I v)
Specified by:
eq in interface IVec2I

eq

public boolean eq(IVec2I v,
                  double resolution)
Specified by:
eq in interface IVec2I

eq

public boolean eq(ISwitchE e,
                  IVec2I v,
                  double resolution)
Specified by:
eq in interface IVec2I

eq

public IBoolR eq(ISwitchR r,
                 IVec2I v,
                 IDoubleI resolution)
Specified by:
eq in interface IVec2I

eqX

public boolean eqX(IVec2I v)
Specified by:
eqX in interface IVec2I

eqY

public boolean eqY(IVec2I v)
Specified by:
eqY in interface IVec2I

eqX

public boolean eqX(ISwitchE e,
                   IVec2I v)
Specified by:
eqX in interface IVec2I

eqY

public boolean eqY(ISwitchE e,
                   IVec2I v)
Specified by:
eqY in interface IVec2I

eqX

public IBoolR eqX(ISwitchR r,
                  IVec2I v)
Specified by:
eqX in interface IVec2I

eqY

public IBoolR eqY(ISwitchR r,
                  IVec2I v)
Specified by:
eqY in interface IVec2I

eqX

public boolean eqX(IVec2I v,
                   double resolution)
Specified by:
eqX in interface IVec2I

eqY

public boolean eqY(IVec2I v,
                   double resolution)
Specified by:
eqY in interface IVec2I

eqX

public boolean eqX(ISwitchE e,
                   IVec2I v,
                   double resolution)
Specified by:
eqX in interface IVec2I

eqY

public boolean eqY(ISwitchE e,
                   IVec2I v,
                   double resolution)
Specified by:
eqY in interface IVec2I

eqX

public IBoolR eqX(ISwitchR r,
                  IVec2I v,
                  IDoubleI resolution)
Specified by:
eqX in interface IVec2I

eqY

public IBoolR eqY(ISwitchR r,
                  IVec2I v,
                  IDoubleI resolution)
Specified by:
eqY in interface IVec2I

angle

public double angle(IVec2I u)
Specified by:
angle in interface IVec2I

angle

public double angle(ISwitchE e,
                    IVec2I u)
Specified by:
angle in interface IVec2I

angle

public IDoubleR angle(ISwitchR r,
                      IVec2I u)
Specified by:
angle in interface IVec2I

rot

public IVec2R rot(double angle)
Specified by:
rot in interface IVec2I

rot

public IVec2R rot(IDoubleI angle)
Specified by:
rot in interface IVec2I

rot

public IVec2R rot(IVec2I center,
                  double angle)
Specified by:
rot in interface IVec2I

rot

public IVec2R rot(IVec2I center,
                  IDoubleI angle)
Specified by:
rot in interface IVec2I

rot

public IVec2R rot(IVec2I destDir)
Specified by:
rot in interface IVec2I

rot

public IVec2R rot(IVec2I center,
                  IVec2I destPt)
Specified by:
rot in interface IVec2I

scale

public IVec2R scale(double f)
Specified by:
scale in interface IVec2I

scale

public IVec2R scale(IDoubleI f)
Specified by:
scale in interface IVec2I

scale

public IVec2R scale(IVec2I center,
                    double f)
Specified by:
scale in interface IVec2I

scale

public IVec2R scale(IVec2I center,
                    IDoubleI f)
Specified by:
scale in interface IVec2I

ref

public IVec2R ref(IVec2I lineDir)
reflect (mirror) 2 dimensionally to the other side of the line

Specified by:
ref in interface IVec2I

ref

public IVec2R ref(IVec2I linePt,
                  IVec2I lineDir)
Specified by:
ref in interface IVec2I

mirror

public IVec2R mirror(IVec2I lineDir)
Specified by:
mirror in interface IVec2I

mirror

public IVec2R mirror(IVec2I linePt,
                     IVec2I lineDir)
Specified by:
mirror in interface IVec2I

transform

public IVec2R transform(IVec2I xvec,
                        IVec2I yvec)
Specified by:
transform in interface IVec2I

transform

public IVec2R transform(IVec2I xvec,
                        IVec2I yvec,
                        IVec2I translate)
Specified by:
transform in interface IVec2I

dif

public IVec2R dif(IVec2I v)
Specified by:
dif in interface IVec2I

diff

public IVec2R diff(IVec2I v)
Specified by:
diff in interface IVec2I

mid

public IVec2R mid(IVec2I v)
Specified by:
mid in interface IVec2I

sum

public IVec2R sum(IVec2I v)
Specified by:
sum in interface IVec2I

sum

public IVec2R sum(IVec2I... v)
Specified by:
sum in interface IVec2I

bisect

public IVec2R bisect(IVec2I v)
Specified by:
bisect in interface IVec2I

sum

public IVec2R sum(IVec2I v2,
                  double w1,
                  double w2)
weighted sum

Specified by:
sum in interface IVec2I

sum

public IVec2R sum(IVec2I v2,
                  double w2)
Specified by:
sum in interface IVec2I

sum

public IVec2R sum(IVec2I v2,
                  IDoubleI w1,
                  IDoubleI w2)
Specified by:
sum in interface IVec2I

sum

public IVec2R sum(IVec2I v2,
                  IDoubleI w2)
Specified by:
sum in interface IVec2I