igeo
Class IVectorObject

java.lang.Object
  extended by igeo.IObject
      extended by igeo.IVectorObject
All Implemented Interfaces:
IParameter, ITransformable, IVecI, IVecOp

public class IVectorObject
extends IObject
implements IVecI

Class only to visualize IVecI.


Field Summary
 IVecI root
           
 IVecI vec
           
 
Fields inherited from class igeo.IObject
attribute, dynamics, graphics, parameter, server
 
Constructor Summary
IVectorObject(IServerI s, IVecI vec)
           
IVectorObject(IServerI s, IVecI vec, IVecI root)
           
IVectorObject(IServerI s, IVectorObject vobj)
           
IVectorObject(IVecI vec)
           
IVectorObject(IVecI vec, IVecI root)
           
IVectorObject(IVectorObject vobj)
           
 
Method Summary
 IVectorObject add(double x, double y, double z)
           
 IVectorObject add(double f, IVecI v)
          scale add alias
 IVectorObject add(IDoubleI x, IDoubleI y, IDoubleI z)
           
 IVectorObject add(IDoubleI f, IVecI v)
          scale add alias
 IVectorObject add(IVecI v)
           
 IVectorObject add(IVecI v, double f)
          scale add
 IVectorObject add(IVecI v, IDoubleI f)
          scale add
 double angle(ISwitchE e, IVecI v)
           
 double angle(ISwitchE e, IVecI v, IVecI axis)
           
 IDoubleI angle(ISwitchR r, IVecI v)
           
 IDoubleI angle(ISwitchR r, IVecI v, IVecI axis)
           
 double angle(IVecI v)
           
 double angle(IVecI v, IVecI axis)
           
 IVecI bisect(IVecI v)
          create a new instance of bisector
 IVectorObject clr(java.awt.Color c)
           
 IVectorObject clr(java.awt.Color c, int alpha)
          to set color, with alpha value overwritten
 IVectorObject clr(double dgray)
           
 IVectorObject clr(double dgray, double dalpha)
           
 IVectorObject clr(double dr, double dg, double db)
           
 IVectorObject clr(double dr, double dg, double db, double da)
           
 IVectorObject clr(float fgray)
           
 IVectorObject clr(float fgray, float falpha)
           
 IVectorObject clr(float fr, float fg, float fb)
           
 IVectorObject clr(float fr, float fg, float fb, float fa)
           
 IVectorObject clr(int gray)
           
 IVectorObject clr(int gray, int alpha)
           
 IVectorObject clr(int r, int g, int b)
           
 IVectorObject clr(int r, int g, int b, int a)
           
 IVectorObject cp()
          cp() is alias of dup()
 IVectorObject cp(double x, double y, double z)
          cp() is alias of dup().add()
 IVectorObject cp(IDoubleI x, IDoubleI y, IDoubleI z)
           
 IVectorObject cp(IVecI v)
           
 IGraphicObject createGraphic(IGraphicMode m)
           
 IVecI cross(IVecI v)
          cross product creates a new instance
 IVecI dif(IVecI v)
          create a new instance of difference
 IVecI diff(IVecI v)
          alias of dif
 double dist(ISwitchE e, IVecI v)
           
 IDoubleI dist(ISwitchR r, IVecI v)
           
 double dist(IVecI v)
           
 double dist2(ISwitchE e, IVecI v)
           
 IDoubleI dist2(ISwitchR r, IVecI v)
           
 double dist2(IVecI v)
          squared distance
 IVectorObject div(double v)
           
 IVectorObject div(IDoubleI v)
           
 double dot(ISwitchE e, IVecI v)
           
 IDoubleI dot(ISwitchR r, IVecI v)
           
 double dot(IVecI v)
           
 IVectorObject dup()
          duplicate object
 boolean eq(ISwitchE e, IVecI v)
           
 boolean eq(ISwitchE e, IVecI v, double resolution)
           
 IBoolI eq(ISwitchR r, IVecI v)
           
 IBoolI eq(ISwitchR r, IVecI v, IDoubleI resolution)
           
 boolean eq(IVecI v)
          whether location is same or not
 boolean eq(IVecI v, double resolution)
           
 boolean eqX(ISwitchE e, IVecI v)
           
 boolean eqX(ISwitchE e, IVecI v, double resolution)
           
 IBoolI eqX(ISwitchR r, IVecI v)
           
 IBoolI eqX(ISwitchR r, IVecI v, IDoubleI resolution)
           
 boolean eqX(IVecI v)
           
 boolean eqX(IVecI v, double resolution)
           
 boolean eqY(ISwitchE e, IVecI v)
           
 boolean eqY(ISwitchE e, IVecI v, double resolution)
           
 IBoolI eqY(ISwitchR r, IVecI v)
           
 IBoolI eqY(ISwitchR r, IVecI v, IDoubleI resolution)
           
 boolean eqY(IVecI v)
           
 boolean eqY(IVecI v, double resolution)
           
 boolean eqZ(ISwitchE e, IVecI v)
           
 boolean eqZ(ISwitchE e, IVecI v, double resolution)
           
 IBoolI eqZ(ISwitchR r, IVecI v)
           
 IBoolI eqZ(ISwitchR r, IVecI v, IDoubleI resolution)
           
 boolean eqZ(IVecI v)
           
 boolean eqZ(IVecI v, double resolution)
           
 IVectorObject flip()
          alias of neg
 IVec get()
           
 double getSize()
           
 IDoubleI getX()
           
 IDoubleI getY()
           
 IDoubleI getZ()
           
 IVectorObject hide()
           
 IVectorObject hsb(double h, double s, double b)
           
 IVectorObject hsb(double h, double s, double b, double a)
           
 IVectorObject hsb(float h, float s, float b)
           
 IVectorObject hsb(float h, float s, float b, float a)
           
protected  void initVector(IServerI s)
           
 boolean isValid()
          checking parameters validity.
 IVectorObject layer(ILayer l)
          Set layer by ILayer object
 double len()
           
 IVectorObject len(double l)
           
 IVectorObject len(IDoubleI l)
           
 double len(ISwitchE e)
           
 IDoubleI len(ISwitchR r)
           
 double len2()
          square of length
 double len2(ISwitchE e)
           
 IDoubleI len2(ISwitchR r)
           
 IVecI mid(IVecI v)
          create a new instance of midpoint
 IVectorObject mirror(IVecI planeDir)
          reflect (mirror) 3 dimensionally to the other side of the plane
 IVectorObject mirror(IVecI center, IVecI planeDir)
           
 IVectorObject mul(double v)
           
 IVectorObject mul(IDoubleI v)
           
 IVectorObject mv(double x, double y, double z)
          mv() is alias of add()
 IVectorObject mv(IDoubleI x, IDoubleI y, IDoubleI z)
           
 IVectorObject mv(IVecI v)
           
 IVectorObject name(java.lang.String nm)
           
 IVectorObject neg()
           
 IVecI nml(IVecI v)
          alias of cross.
 IVecI nml(IVecI pt1, IVecI pt2)
          create normal vector from 3 points of self, pt1 and pt2
 IVectorObject ref(IVecI planeDir)
          reflect (mirror) 3 dimensionally to the other side of the plane
 IVectorObject ref(IVecI center, IVecI planeDir)
           
 IVectorObject rev()
          alias of neg()
 IVecI root()
           
 IVectorObject root(IVecI v)
           
 IVectorObject rot(double angle)
           
 IVectorObject rot(IDoubleI angle)
          rotation around z-axis and origin
 IVectorObject rot(IVecI axis, double angle)
           
 IVectorObject rot(IVecI axis, IDoubleI angle)
          rotation around axis vector
 IVectorObject rot(IVecI axis, IVecI destDir)
          rotate to destination direction vector
 IVectorObject rot(IVecI center, IVecI axis, double angle)
           
 IVectorObject rot(IVecI center, IVecI axis, IDoubleI angle)
          rotation around axis vector and center
 IVectorObject rot(IVecI center, IVecI axis, IVecI destPt)
          rotate to destination point location
 IVectorObject rot2(double angle)
          rotation on xy-plane around origin; same with rot(double)
 IVectorObject rot2(IDoubleI angle)
          rotation on xy-plane around origin; same with rot(IDoubleI)
 IVectorObject rot2(IVecI destDir)
          rotate to destination direction vector
 IVectorObject rot2(IVecI center, double angle)
           
 IVectorObject rot2(IVecI center, IDoubleI angle)
          rotation on xy-plane around center
 IVectorObject rot2(IVecI center, IVecI destPt)
          rotate to destination point location
 IVectorObject scale(double f)
           
 IVectorObject scale(IDoubleI f)
          alias of mul
 IVectorObject scale(IVecI center, double f)
           
 IVectorObject scale(IVecI center, IDoubleI f)
           
 IVectorObject scale1d(IVecI axis, double f)
          scale only in 1 direction
 IVectorObject scale1d(IVecI axis, IDoubleI f)
           
 IVectorObject scale1d(IVecI center, IVecI axis, double f)
           
 IVectorObject scale1d(IVecI center, IVecI axis, IDoubleI f)
           
 IVectorObject set(double x, double y, double z)
           
 IVectorObject set(IDoubleI x, IDoubleI y, IDoubleI z)
           
 IVectorObject set(IVecI v)
           
 IVectorObject setColor(java.awt.Color c)
           
 IVectorObject setColor(java.awt.Color c, int alpha)
           
 IVectorObject setColor(double dgray)
           
 IVectorObject setColor(double dgray, double dalpha)
           
 IVectorObject setColor(double dr, double dg, double db)
           
 IVectorObject setColor(double dr, double dg, double db, double da)
           
 IVectorObject setColor(float fgray)
           
 IVectorObject setColor(float fgray, float falpha)
           
 IVectorObject setColor(float fr, float fg, float fb)
           
 IVectorObject setColor(float fr, float fg, float fb, float fa)
           
 IVectorObject setColor(int gray)
           
 IVectorObject setColor(int gray, int alpha)
           
 IVectorObject setColor(int r, int g, int b)
           
 IVectorObject setColor(int r, int g, int b, int a)
           
 IVectorObject setHSBColor(double h, double s, double b)
           
 IVectorObject setHSBColor(double h, double s, double b, double a)
           
 IVectorObject setHSBColor(float h, float s, float b)
           
 IVectorObject setHSBColor(float h, float s, float b, float a)
           
 IVectorObject setSize(double sz)
          set size of dot in graphic
 IVectorObject shear(double sxy, double syx, double syz, double szy, double szx, double sxz)
          shear operation
 IVectorObject shear(IDoubleI sxy, IDoubleI syx, IDoubleI syz, IDoubleI szy, IDoubleI szx, IDoubleI sxz)
           
 IVectorObject shear(IVecI center, double sxy, double syx, double syz, double szy, double szx, double sxz)
           
 IVectorObject shear(IVecI center, IDoubleI sxy, IDoubleI syx, IDoubleI syz, IDoubleI szy, IDoubleI szx, IDoubleI sxz)
           
 IVectorObject shearXY(double sxy, double syx)
           
 IVectorObject shearXY(IDoubleI sxy, IDoubleI syx)
           
 IVectorObject shearXY(IVecI center, double sxy, double syx)
           
 IVectorObject shearXY(IVecI center, IDoubleI sxy, IDoubleI syx)
           
 IVectorObject shearYZ(double syz, double szy)
           
 IVectorObject shearYZ(IDoubleI syz, IDoubleI szy)
           
 IVectorObject shearYZ(IVecI center, double syz, double szy)
           
 IVectorObject shearYZ(IVecI center, IDoubleI syz, IDoubleI szy)
           
 IVectorObject shearZX(double szx, double sxz)
           
 IVectorObject shearZX(IDoubleI szx, IDoubleI sxz)
           
 IVectorObject shearZX(IVecI center, double szx, double sxz)
           
 IVectorObject shearZX(IVecI center, IDoubleI szx, IDoubleI sxz)
           
 IVectorObject show()
           
 double size()
           
 IVectorObject size(double sz)
           
 IVectorObject sub(double x, double y, double z)
           
 IVectorObject sub(IDoubleI x, IDoubleI y, IDoubleI z)
           
 IVectorObject sub(IVecI v)
           
 IVecI sum(IVecI... v)
          create a new instance of total summation
 IVecI sum(IVecI v)
          create a new instance of total summation
 IVecI sum(IVecI v2, double w2)
           
 IVecI sum(IVecI v2, double w1, double w2)
          weighted sum
 IVecI sum(IVecI v2, IDoubleI w2)
           
 IVecI sum(IVecI v2, IDoubleI w1, IDoubleI w2)
           
 IVec2I to2d()
           
 IVec4I to4d()
           
 IVec4I to4d(double w)
           
 IVec4I to4d(IDoubleI w)
           
 IVectorObject transform(IMatrix3I mat)
           
 IVectorObject transform(IMatrix4I mat)
           
 IVectorObject transform(IVecI xvec, IVecI yvec, IVecI zvec)
           
 IVectorObject transform(IVecI xvec, IVecI yvec, IVecI zvec, IVecI translate)
           
 IVectorObject translate(double x, double y, double z)
          translate is alias of add()
 IVectorObject translate(IDoubleI x, IDoubleI y, IDoubleI z)
           
 IVectorObject translate(IVecI v)
           
 IVectorObject unit()
           
 IVecI vector()
           
 IVectorObject vector(IVecI v)
           
 double x()
           
 double y()
           
 double z()
           
 IVectorObject zero()
          setting all zero
 
Methods inherited from class igeo.IObject
addDynamics, alpha, alphaInt, attr, attr, blue, blueInt, clearDynamics, clearGraphics, clr, del, deletDynamics, deleteDynamics, deleteDynamics, deleteGraphic, dynamicsNum, getColor, getDynamics, getGraphic, getGraphic, getParameter, graphicsNum, green, greenInt, initGraphic, initObject, isVisible, layer, layer, name, red, redInt, resetGraphic, server, setParameter, syncColor, updateGraphic, visible
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

vec

public IVecI vec

root

public IVecI root
Constructor Detail

IVectorObject

public IVectorObject(IServerI s,
                     IVecI vec)

IVectorObject

public IVectorObject(IVecI vec)

IVectorObject

public IVectorObject(IServerI s,
                     IVecI vec,
                     IVecI root)

IVectorObject

public IVectorObject(IVecI vec,
                     IVecI root)

IVectorObject

public IVectorObject(IServerI s,
                     IVectorObject vobj)

IVectorObject

public IVectorObject(IVectorObject vobj)
Method Detail

vector

public IVecI vector()

vector

public IVectorObject vector(IVecI v)

root

public IVecI root()

root

public IVectorObject root(IVecI v)

initVector

protected void initVector(IServerI s)

createGraphic

public IGraphicObject createGraphic(IGraphicMode m)
Overrides:
createGraphic in class IObject

x

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

y

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

z

public double z()
Specified by:
z in interface IVecI

get

public IVec get()
Specified by:
get in interface IParameter
Specified by:
get in interface IVecI
Specified by:
get in interface IVecOp

dup

public IVectorObject dup()
Description copied from class: IObject
duplicate object

Specified by:
dup in interface ITransformable
Specified by:
dup in interface IVecI
Overrides:
dup in class IObject

to2d

public IVec2I to2d()
Specified by:
to2d in interface IVecI

to4d

public IVec4I to4d()
Specified by:
to4d in interface IVecI

to4d

public IVec4I to4d(double w)
Specified by:
to4d in interface IVecI

to4d

public IVec4I to4d(IDoubleI w)
Specified by:
to4d in interface IVecI

getX

public IDoubleI getX()
Specified by:
getX in interface IVecI

getY

public IDoubleI getY()
Specified by:
getY in interface IVecI

getZ

public IDoubleI getZ()
Specified by:
getZ in interface IVecI

set

public IVectorObject set(IVecI v)
Specified by:
set in interface IVecI

set

public IVectorObject set(double x,
                         double y,
                         double z)
Specified by:
set in interface IVecI

set

public IVectorObject set(IDoubleI x,
                         IDoubleI y,
                         IDoubleI z)
Specified by:
set in interface IVecI

add

public IVectorObject add(double x,
                         double y,
                         double z)
Specified by:
add in interface ITransformable
Specified by:
add in interface IVecI

add

public IVectorObject add(IDoubleI x,
                         IDoubleI y,
                         IDoubleI z)
Specified by:
add in interface ITransformable
Specified by:
add in interface IVecI

add

public IVectorObject add(IVecI v)
Specified by:
add in interface ITransformable
Specified by:
add in interface IVecI

sub

public IVectorObject sub(double x,
                         double y,
                         double z)
Specified by:
sub in interface ITransformable
Specified by:
sub in interface IVecI

sub

public IVectorObject sub(IDoubleI x,
                         IDoubleI y,
                         IDoubleI z)
Specified by:
sub in interface ITransformable
Specified by:
sub in interface IVecI

sub

public IVectorObject sub(IVecI v)
Specified by:
sub in interface ITransformable
Specified by:
sub in interface IVecI

mul

public IVectorObject mul(IDoubleI v)
Specified by:
mul in interface ITransformable
Specified by:
mul in interface IVecI

mul

public IVectorObject mul(double v)
Specified by:
mul in interface ITransformable
Specified by:
mul in interface IVecI

div

public IVectorObject div(IDoubleI v)
Specified by:
div in interface ITransformable
Specified by:
div in interface IVecI

div

public IVectorObject div(double v)
Specified by:
div in interface ITransformable
Specified by:
div in interface IVecI

neg

public IVectorObject neg()
Specified by:
neg in interface ITransformable
Specified by:
neg in interface IVecI

rev

public IVectorObject rev()
Description copied from interface: IVecI
alias of neg()

Specified by:
rev in interface IVecI

flip

public IVectorObject flip()
Description copied from interface: ITransformable
alias of neg

Specified by:
flip in interface ITransformable
Specified by:
flip in interface IVecI

zero

public IVectorObject zero()
Description copied from interface: IVecI
setting all zero

Specified by:
zero in interface IVecI

add

public IVectorObject add(IVecI v,
                         double f)
Description copied from interface: ITransformable
scale add

Specified by:
add in interface ITransformable
Specified by:
add in interface IVecI

add

public IVectorObject add(IVecI v,
                         IDoubleI f)
Description copied from interface: ITransformable
scale add

Specified by:
add in interface ITransformable
Specified by:
add in interface IVecI

add

public IVectorObject add(double f,
                         IVecI v)
Description copied from interface: ITransformable
scale add alias

Specified by:
add in interface ITransformable

add

public IVectorObject add(IDoubleI f,
                         IVecI v)
Description copied from interface: ITransformable
scale add alias

Specified by:
add in interface ITransformable

dot

public double dot(IVecI v)
Specified by:
dot in interface IVecI

dot

public double dot(ISwitchE e,
                  IVecI v)
Specified by:
dot in interface IVecI

dot

public IDoubleI dot(ISwitchR r,
                    IVecI v)
Specified by:
dot in interface IVecI

cross

public IVecI cross(IVecI v)
Description copied from interface: IVecI
cross product creates a new instance

Specified by:
cross in interface IVecI

len

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

len

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

len

public IDoubleI len(ISwitchR r)
Specified by:
len in interface IVecI

len2

public double len2()
Description copied from interface: IVecI
square of length

Specified by:
len2 in interface IVecI

len2

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

len2

public IDoubleI len2(ISwitchR r)
Specified by:
len2 in interface IVecI

len

public IVectorObject len(IDoubleI l)
Specified by:
len in interface IVecI

len

public IVectorObject len(double l)
Specified by:
len in interface IVecI

unit

public IVectorObject unit()
Specified by:
unit in interface IVecI

dist

public double dist(IVecI v)
Specified by:
dist in interface IVecI

dist

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

dist

public IDoubleI dist(ISwitchR r,
                     IVecI v)
Specified by:
dist in interface IVecI

dist2

public double dist2(IVecI v)
Description copied from interface: IVecI
squared distance

Specified by:
dist2 in interface IVecI

dist2

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

dist2

public IDoubleI dist2(ISwitchR r,
                      IVecI v)
Specified by:
dist2 in interface IVecI

eq

public boolean eq(IVecI v)
Description copied from interface: IVecI
whether location is same or not

Specified by:
eq in interface IVecI

eq

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

eq

public IBoolI eq(ISwitchR r,
                 IVecI v)
Specified by:
eq in interface IVecI

eq

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

eq

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

eq

public IBoolI eq(ISwitchR r,
                 IVecI v,
                 IDoubleI resolution)
Specified by:
eq in interface IVecI

eqX

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

eqY

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

eqZ

public boolean eqZ(IVecI v)
Specified by:
eqZ in interface IVecI

eqX

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

eqY

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

eqZ

public boolean eqZ(ISwitchE e,
                   IVecI v)
Specified by:
eqZ in interface IVecI

eqX

public IBoolI eqX(ISwitchR r,
                  IVecI v)
Specified by:
eqX in interface IVecI

eqY

public IBoolI eqY(ISwitchR r,
                  IVecI v)
Specified by:
eqY in interface IVecI

eqZ

public IBoolI eqZ(ISwitchR r,
                  IVecI v)
Specified by:
eqZ in interface IVecI

eqX

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

eqY

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

eqZ

public boolean eqZ(IVecI v,
                   double resolution)
Specified by:
eqZ in interface IVecI

eqX

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

eqY

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

eqZ

public boolean eqZ(ISwitchE e,
                   IVecI v,
                   double resolution)
Specified by:
eqZ in interface IVecI

eqX

public IBoolI eqX(ISwitchR r,
                  IVecI v,
                  IDoubleI resolution)
Specified by:
eqX in interface IVecI

eqY

public IBoolI eqY(ISwitchR r,
                  IVecI v,
                  IDoubleI resolution)
Specified by:
eqY in interface IVecI

eqZ

public IBoolI eqZ(ISwitchR r,
                  IVecI v,
                  IDoubleI resolution)
Specified by:
eqZ in interface IVecI

angle

public double angle(IVecI v)
Specified by:
angle in interface IVecI
Returns:
angle between two vector from 0 to Pi

angle

public double angle(ISwitchE e,
                    IVecI v)
Specified by:
angle in interface IVecI

angle

public IDoubleI angle(ISwitchR r,
                      IVecI v)
Specified by:
angle in interface IVecI

angle

public double angle(IVecI v,
                    IVecI axis)
Specified by:
angle in interface IVecI
axis - axis to determin sign of angle following right-handed screw rule.
Returns:
angle between two vector from -Pi to Pi. Sign follows right-handed screw rule along axis

angle

public double angle(ISwitchE e,
                    IVecI v,
                    IVecI axis)
Specified by:
angle in interface IVecI

angle

public IDoubleI angle(ISwitchR r,
                      IVecI v,
                      IVecI axis)
Specified by:
angle in interface IVecI

rot

public IVectorObject rot(IDoubleI angle)
Description copied from interface: ITransformable
rotation around z-axis and origin

Specified by:
rot in interface ITransformable

rot

public IVectorObject rot(double angle)
Specified by:
rot in interface ITransformable

rot

public IVectorObject rot(IVecI axis,
                         IDoubleI angle)
Description copied from interface: ITransformable
rotation around axis vector

Specified by:
rot in interface ITransformable
Specified by:
rot in interface IVecI

rot

public IVectorObject rot(IVecI axis,
                         double angle)
Specified by:
rot in interface ITransformable
Specified by:
rot in interface IVecI

rot

public IVectorObject rot(IVecI center,
                         IVecI axis,
                         double angle)
Specified by:
rot in interface ITransformable
Specified by:
rot in interface IVecI

rot

public IVectorObject rot(IVecI center,
                         IVecI axis,
                         IDoubleI angle)
Description copied from interface: ITransformable
rotation around axis vector and center

Specified by:
rot in interface ITransformable
Specified by:
rot in interface IVecI

rot

public IVectorObject rot(IVecI axis,
                         IVecI destDir)
rotate to destination direction vector

Specified by:
rot in interface ITransformable
Specified by:
rot in interface IVecI

rot

public IVectorObject rot(IVecI center,
                         IVecI axis,
                         IVecI destPt)
rotate to destination point location

Specified by:
rot in interface ITransformable
Specified by:
rot in interface IVecI

rot2

public IVectorObject rot2(IDoubleI angle)
Description copied from interface: ITransformable
rotation on xy-plane around origin; same with rot(IDoubleI)

Specified by:
rot2 in interface ITransformable

rot2

public IVectorObject rot2(double angle)
Description copied from interface: ITransformable
rotation on xy-plane around origin; same with rot(double)

Specified by:
rot2 in interface ITransformable

rot2

public IVectorObject rot2(IVecI center,
                          double angle)
Specified by:
rot2 in interface ITransformable

rot2

public IVectorObject rot2(IVecI center,
                          IDoubleI angle)
Description copied from interface: ITransformable
rotation on xy-plane around center

Specified by:
rot2 in interface ITransformable

rot2

public IVectorObject rot2(IVecI destDir)
rotate to destination direction vector

Specified by:
rot2 in interface ITransformable

rot2

public IVectorObject rot2(IVecI center,
                          IVecI destPt)
rotate to destination point location

Specified by:
rot2 in interface ITransformable

scale

public IVectorObject scale(IDoubleI f)
alias of mul

Specified by:
scale in interface ITransformable
Specified by:
scale in interface IVecI

scale

public IVectorObject scale(double f)
Specified by:
scale in interface ITransformable
Specified by:
scale in interface IVecI

scale

public IVectorObject scale(IVecI center,
                           IDoubleI f)
Specified by:
scale in interface ITransformable
Specified by:
scale in interface IVecI

scale

public IVectorObject scale(IVecI center,
                           double f)
Specified by:
scale in interface ITransformable
Specified by:
scale in interface IVecI

scale1d

public IVectorObject scale1d(IVecI axis,
                             double f)
scale only in 1 direction

Specified by:
scale1d in interface ITransformable
Specified by:
scale1d in interface IVecI

scale1d

public IVectorObject scale1d(IVecI axis,
                             IDoubleI f)
Specified by:
scale1d in interface ITransformable
Specified by:
scale1d in interface IVecI

scale1d

public IVectorObject scale1d(IVecI center,
                             IVecI axis,
                             double f)
Specified by:
scale1d in interface ITransformable
Specified by:
scale1d in interface IVecI

scale1d

public IVectorObject scale1d(IVecI center,
                             IVecI axis,
                             IDoubleI f)
Specified by:
scale1d in interface ITransformable
Specified by:
scale1d in interface IVecI

ref

public IVectorObject ref(IVecI planeDir)
reflect (mirror) 3 dimensionally to the other side of the plane

Specified by:
ref in interface ITransformable
Specified by:
ref in interface IVecI

ref

public IVectorObject ref(IVecI center,
                         IVecI planeDir)
Specified by:
ref in interface ITransformable
Specified by:
ref in interface IVecI

mirror

public IVectorObject mirror(IVecI planeDir)
reflect (mirror) 3 dimensionally to the other side of the plane

Specified by:
mirror in interface ITransformable
Specified by:
mirror in interface IVecI

mirror

public IVectorObject mirror(IVecI center,
                            IVecI planeDir)
Specified by:
mirror in interface ITransformable
Specified by:
mirror in interface IVecI

shear

public IVectorObject shear(double sxy,
                           double syx,
                           double syz,
                           double szy,
                           double szx,
                           double sxz)
shear operation

Specified by:
shear in interface ITransformable
Specified by:
shear in interface IVecI

shear

public IVectorObject shear(IDoubleI sxy,
                           IDoubleI syx,
                           IDoubleI syz,
                           IDoubleI szy,
                           IDoubleI szx,
                           IDoubleI sxz)
Specified by:
shear in interface ITransformable
Specified by:
shear in interface IVecI

shear

public IVectorObject shear(IVecI center,
                           double sxy,
                           double syx,
                           double syz,
                           double szy,
                           double szx,
                           double sxz)
Specified by:
shear in interface ITransformable
Specified by:
shear in interface IVecI

shear

public IVectorObject shear(IVecI center,
                           IDoubleI sxy,
                           IDoubleI syx,
                           IDoubleI syz,
                           IDoubleI szy,
                           IDoubleI szx,
                           IDoubleI sxz)
Specified by:
shear in interface ITransformable
Specified by:
shear in interface IVecI

shearXY

public IVectorObject shearXY(double sxy,
                             double syx)
Specified by:
shearXY in interface ITransformable
Specified by:
shearXY in interface IVecI

shearXY

public IVectorObject shearXY(IDoubleI sxy,
                             IDoubleI syx)
Specified by:
shearXY in interface ITransformable
Specified by:
shearXY in interface IVecI

shearXY

public IVectorObject shearXY(IVecI center,
                             double sxy,
                             double syx)
Specified by:
shearXY in interface ITransformable
Specified by:
shearXY in interface IVecI

shearXY

public IVectorObject shearXY(IVecI center,
                             IDoubleI sxy,
                             IDoubleI syx)
Specified by:
shearXY in interface ITransformable
Specified by:
shearXY in interface IVecI

shearYZ

public IVectorObject shearYZ(double syz,
                             double szy)
Specified by:
shearYZ in interface ITransformable
Specified by:
shearYZ in interface IVecI

shearYZ

public IVectorObject shearYZ(IDoubleI syz,
                             IDoubleI szy)
Specified by:
shearYZ in interface ITransformable
Specified by:
shearYZ in interface IVecI

shearYZ

public IVectorObject shearYZ(IVecI center,
                             double syz,
                             double szy)
Specified by:
shearYZ in interface ITransformable
Specified by:
shearYZ in interface IVecI

shearYZ

public IVectorObject shearYZ(IVecI center,
                             IDoubleI syz,
                             IDoubleI szy)
Specified by:
shearYZ in interface ITransformable
Specified by:
shearYZ in interface IVecI

shearZX

public IVectorObject shearZX(double szx,
                             double sxz)
Specified by:
shearZX in interface ITransformable
Specified by:
shearZX in interface IVecI

shearZX

public IVectorObject shearZX(IDoubleI szx,
                             IDoubleI sxz)
Specified by:
shearZX in interface ITransformable
Specified by:
shearZX in interface IVecI

shearZX

public IVectorObject shearZX(IVecI center,
                             double szx,
                             double sxz)
Specified by:
shearZX in interface ITransformable
Specified by:
shearZX in interface IVecI

shearZX

public IVectorObject shearZX(IVecI center,
                             IDoubleI szx,
                             IDoubleI sxz)
Specified by:
shearZX in interface ITransformable
Specified by:
shearZX in interface IVecI

translate

public IVectorObject translate(double x,
                               double y,
                               double z)
translate is alias of add()

Specified by:
translate in interface ITransformable
Specified by:
translate in interface IVecI

translate

public IVectorObject translate(IDoubleI x,
                               IDoubleI y,
                               IDoubleI z)
Specified by:
translate in interface ITransformable
Specified by:
translate in interface IVecI

translate

public IVectorObject translate(IVecI v)
Specified by:
translate in interface ITransformable
Specified by:
translate in interface IVecI

mv

public IVectorObject mv(double x,
                        double y,
                        double z)
mv() is alias of add()

Specified by:
mv in interface ITransformable
Specified by:
mv in interface IVecI

mv

public IVectorObject mv(IDoubleI x,
                        IDoubleI y,
                        IDoubleI z)
Specified by:
mv in interface ITransformable
Specified by:
mv in interface IVecI

mv

public IVectorObject mv(IVecI v)
Specified by:
mv in interface ITransformable
Specified by:
mv in interface IVecI

cp

public IVectorObject cp()
cp() is alias of dup()

Specified by:
cp in interface ITransformable
Specified by:
cp in interface IVecI
Overrides:
cp in class IObject

cp

public IVectorObject cp(double x,
                        double y,
                        double z)
cp() is alias of dup().add()

Specified by:
cp in interface ITransformable
Specified by:
cp in interface IVecI

cp

public IVectorObject cp(IDoubleI x,
                        IDoubleI y,
                        IDoubleI z)
Specified by:
cp in interface ITransformable
Specified by:
cp in interface IVecI

cp

public IVectorObject cp(IVecI v)
Specified by:
cp in interface ITransformable
Specified by:
cp in interface IVecI

transform

public IVectorObject transform(IMatrix3I mat)
Specified by:
transform in interface ITransformable
Specified by:
transform in interface IVecI

transform

public IVectorObject transform(IMatrix4I mat)
Specified by:
transform in interface ITransformable
Specified by:
transform in interface IVecI

transform

public IVectorObject transform(IVecI xvec,
                               IVecI yvec,
                               IVecI zvec)
Specified by:
transform in interface ITransformable
Specified by:
transform in interface IVecI

transform

public IVectorObject transform(IVecI xvec,
                               IVecI yvec,
                               IVecI zvec,
                               IVecI translate)
Specified by:
transform in interface ITransformable
Specified by:
transform in interface IVecI

dif

public IVecI dif(IVecI v)
Description copied from interface: IVecI
create a new instance of difference

Specified by:
dif in interface IVecI

diff

public IVecI diff(IVecI v)
Description copied from interface: IVecI
alias of dif

Specified by:
diff in interface IVecI

mid

public IVecI mid(IVecI v)
Description copied from interface: IVecI
create a new instance of midpoint

Specified by:
mid in interface IVecI

sum

public IVecI sum(IVecI v)
Description copied from interface: IVecI
create a new instance of total summation

Specified by:
sum in interface IVecI

sum

public IVecI sum(IVecI... v)
Description copied from interface: IVecI
create a new instance of total summation

Specified by:
sum in interface IVecI

bisect

public IVecI bisect(IVecI v)
Description copied from interface: IVecI
create a new instance of bisector

Specified by:
bisect in interface IVecI

sum

public IVecI sum(IVecI v2,
                 double w1,
                 double w2)
weighted sum

Specified by:
sum in interface IVecI

sum

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

sum

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

sum

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

nml

public IVecI nml(IVecI v)
alias of cross. (not unitized ... ?) return IVecI.

Specified by:
nml in interface IVecI

nml

public IVecI nml(IVecI pt1,
                 IVecI pt2)
create normal vector from 3 points of self, pt1 and pt2

Specified by:
nml in interface IVecI

isValid

public boolean isValid()
Description copied from class: IObject
checking parameters validity. to be overriden.

Specified by:
isValid in interface IVecI
Overrides:
isValid in class IObject

setSize

public IVectorObject setSize(double sz)
set size of dot in graphic


size

public IVectorObject size(double sz)

getSize

public double getSize()

size

public double size()

name

public IVectorObject name(java.lang.String nm)
Overrides:
name in class IObject

layer

public IVectorObject layer(ILayer l)
Description copied from class: IObject
Set layer by ILayer object

Overrides:
layer in class IObject

hide

public IVectorObject hide()
Overrides:
hide in class IObject

show

public IVectorObject show()
Overrides:
show in class IObject

clr

public IVectorObject clr(java.awt.Color c)
Overrides:
clr in class IObject

clr

public IVectorObject clr(java.awt.Color c,
                         int alpha)
Description copied from class: IObject
to set color, with alpha value overwritten

Overrides:
clr in class IObject

clr

public IVectorObject clr(int gray)
Overrides:
clr in class IObject

clr

public IVectorObject clr(float fgray)
Overrides:
clr in class IObject

clr

public IVectorObject clr(double dgray)
Overrides:
clr in class IObject

clr

public IVectorObject clr(int gray,
                         int alpha)
Overrides:
clr in class IObject

clr

public IVectorObject clr(float fgray,
                         float falpha)
Overrides:
clr in class IObject

clr

public IVectorObject clr(double dgray,
                         double dalpha)
Overrides:
clr in class IObject

clr

public IVectorObject clr(int r,
                         int g,
                         int b)
Overrides:
clr in class IObject

clr

public IVectorObject clr(float fr,
                         float fg,
                         float fb)
Overrides:
clr in class IObject

clr

public IVectorObject clr(double dr,
                         double dg,
                         double db)
Overrides:
clr in class IObject

clr

public IVectorObject clr(int r,
                         int g,
                         int b,
                         int a)
Overrides:
clr in class IObject

clr

public IVectorObject clr(float fr,
                         float fg,
                         float fb,
                         float fa)
Overrides:
clr in class IObject

clr

public IVectorObject clr(double dr,
                         double dg,
                         double db,
                         double da)
Overrides:
clr in class IObject

hsb

public IVectorObject hsb(float h,
                         float s,
                         float b,
                         float a)
Overrides:
hsb in class IObject

hsb

public IVectorObject hsb(double h,
                         double s,
                         double b,
                         double a)
Overrides:
hsb in class IObject

hsb

public IVectorObject hsb(float h,
                         float s,
                         float b)
Overrides:
hsb in class IObject

hsb

public IVectorObject hsb(double h,
                         double s,
                         double b)
Overrides:
hsb in class IObject

setColor

public IVectorObject setColor(java.awt.Color c)
Overrides:
setColor in class IObject

setColor

public IVectorObject setColor(java.awt.Color c,
                              int alpha)
Overrides:
setColor in class IObject

setColor

public IVectorObject setColor(int gray)
Overrides:
setColor in class IObject

setColor

public IVectorObject setColor(float fgray)
Overrides:
setColor in class IObject

setColor

public IVectorObject setColor(double dgray)
Overrides:
setColor in class IObject

setColor

public IVectorObject setColor(int gray,
                              int alpha)
Overrides:
setColor in class IObject

setColor

public IVectorObject setColor(float fgray,
                              float falpha)
Overrides:
setColor in class IObject

setColor

public IVectorObject setColor(double dgray,
                              double dalpha)
Overrides:
setColor in class IObject

setColor

public IVectorObject setColor(int r,
                              int g,
                              int b)
Overrides:
setColor in class IObject

setColor

public IVectorObject setColor(float fr,
                              float fg,
                              float fb)
Overrides:
setColor in class IObject

setColor

public IVectorObject setColor(double dr,
                              double dg,
                              double db)
Overrides:
setColor in class IObject

setColor

public IVectorObject setColor(int r,
                              int g,
                              int b,
                              int a)
Overrides:
setColor in class IObject

setColor

public IVectorObject setColor(float fr,
                              float fg,
                              float fb,
                              float fa)
Overrides:
setColor in class IObject

setColor

public IVectorObject setColor(double dr,
                              double dg,
                              double db,
                              double da)
Overrides:
setColor in class IObject

setHSBColor

public IVectorObject setHSBColor(float h,
                                 float s,
                                 float b,
                                 float a)
Overrides:
setHSBColor in class IObject

setHSBColor

public IVectorObject setHSBColor(double h,
                                 double s,
                                 double b,
                                 double a)
Overrides:
setHSBColor in class IObject

setHSBColor

public IVectorObject setHSBColor(float h,
                                 float s,
                                 float b)
Overrides:
setHSBColor in class IObject

setHSBColor

public IVectorObject setHSBColor(double h,
                                 double s,
                                 double b)
Overrides:
setHSBColor in class IObject