http://www.jpicedt.org

Uses of Class
jpicedt.graphic.PicVector

Packages that use PicVector
jpicedt.graphic jPicEdt library core classes and packages. 
jpicedt.graphic.model Document structure and graphic primitives. 
jpicedt.graphic.view Document appearance. 
 

Uses of PicVector in jpicedt.graphic
 

Fields in jpicedt.graphic declared as PicVector
static PicVector PicVector.X_AXIS
          the (1,0) unit vector ; this may be used to compute e.g.
static PicVector PicVector.Y_AXIS
          the (0,1) unit vector ; this may be used to compute e.g.
 

Methods in jpicedt.graphic that return PicVector
 PicVector PicVector.add(PicVector other)
          Add the given vector to this vector, and return this for convenience.
 PicVector PicVector.add(PicVector other, double a)
          Add the given vector scaled by "a" to this vector, and return this for convenience.
static PicVector PEToolKit.computeTangentToPath(Shape s, PicPoint pt, double maxDist)
          Returns the tangent to the given path, computed at the path-point which is closest to the given point "pt" than the given maximum distance Return null otherwise (ie if pt is too far from the given shape).
static PicVector PicVector.getDirector(double startPtX, double startPtY, double endPtX, double endPtY, PicVector dest)
          Return a unitary vector pointing from startPt to endPt ; if dest is non-null, it's filled with the result and returned for convenience ; otherwise, a new PicPoint gets allocated.
static PicVector PicVector.getDirector(PicPoint startPt, PicPoint endPt)
          Return a unitary vector pointing from startPt to endPt
static PicVector PicVector.getDirector(PicPoint startPt, PicPoint endPt, PicVector dest)
          Return a unitary vector pointing from startPt to endPt ; if dest is non-null, it's filled with the result and returned for convenience ; otherwise, a new PicPoint gets allocated.
static PicVector PicVector.getOrthogonal(PicPoint startPt, PicPoint endPt)
          Return a UNITARY vector orthogonal to the vector pointing from startPt to endPt and built by rotating this vector CCW.
 PicVector PicVector.inverse()
          Change the sign of each coordinate of this vector
 PicVector PicVector.normalize()
          Normalize this vector so that this becomes a unitary vector Does nothing if this vector is a null-vector.
static PicVector PicVector.normalize(PicVector src, PicVector dest)
          Return a normalized copy of the given vector.
 PicVector PicVector.rotate(double angle)
          Rotate this vector by the given (CCW-oriented) angle in radians.
Current implementation arranges for a very fast code if angle is Math.PI, Math.PI/2 or -Math.PI/2.
static PicVector PicVector.rotate(PicVector src, PicVector dest, double angle)
          Return a rotated copy of the given vector.
 PicVector PicVector.scale(double a)
          Multiply each coordinate of this vector by the given double
 PicVector PicVector.scale(double ax, double ay)
          Multiply each coordinate of this vector by the given pair of double
static PicVector PicVector.scale(PicVector src, PicVector dest, double scale)
          Return a scaled copy of the given vector.
 PicVector PicVector.setCoordinates(Line2D line)
          Set the coordinates of this vector from the given Line2D object
 PicVector PicVector.setCoordinates(Point2D pt1, Point2D pt2)
          Set the coordinates of this vector from the two given points.
 PicVector PicVector.subtract(PicVector other)
          Subtract the given vector from this vector, and return this for convenience.
 

Methods in jpicedt.graphic with parameters of type PicVector
 PicVector PicVector.add(PicVector other)
          Add the given vector to this vector, and return this for convenience.
 PicVector PicVector.add(PicVector other, double a)
          Add the given vector scaled by "a" to this vector, and return this for convenience.
 double PicVector.angle(PicVector other)
          Return the (CCW oriented) angle between this vector and the given vector, in radians.
 double PicVector.angleDegrees(PicVector other)
          Return the (CCW oriented) angle between this vector and the given vector, in degrees.
 double PicVector.det(PicVector other)
          Return the determinant of {{x,y},{other.x,other.y}} ; this is aka vector product, where only the z-coordinate gets returned.
 double PicVector.dot(PicVector other)
          Return the dot product of this vector with the given vector
static PicVector PicVector.getDirector(double startPtX, double startPtY, double endPtX, double endPtY, PicVector dest)
          Return a unitary vector pointing from startPt to endPt ; if dest is non-null, it's filled with the result and returned for convenience ; otherwise, a new PicPoint gets allocated.
static PicVector PicVector.getDirector(PicPoint startPt, PicPoint endPt, PicVector dest)
          Return a unitary vector pointing from startPt to endPt ; if dest is non-null, it's filled with the result and returned for convenience ; otherwise, a new PicPoint gets allocated.
 boolean PicVector.isColinear(PicVector other)
          Return whether this vector is proportional to the given vector
 boolean PicVector.isOrthogonal(PicVector other)
          Return whether this vector is orthogonal to the given vector
static PicVector PicVector.normalize(PicVector src, PicVector dest)
          Return a normalized copy of the given vector.
static PicVector PicVector.rotate(PicVector src, PicVector dest, double angle)
          Return a rotated copy of the given vector.
static PicVector PicVector.scale(PicVector src, PicVector dest, double scale)
          Return a scaled copy of the given vector.
 PicVector PicVector.subtract(PicVector other)
          Subtract the given vector from this vector, and return this for convenience.
 

Constructors in jpicedt.graphic with parameters of type PicVector
PicVector(PicVector picVec)
          Clone the given vector.
 

Uses of PicVector in jpicedt.graphic.model
 

Fields in jpicedt.graphic.model declared as PicVector
protected  PicVector PicParallelogram.b2tVec
          see documentation for l2rVec
protected  PicVector PicParallelogram.l2rVec
          "l2rVec" is a vector pointing from P_BL to P_BR (or equally, from P_TL to P_TR) "b2tVec" is a vector pointing from P_BR to P_TR (or equally, from P_BL to P_TL) These two vectors simply define a convenient parallelogram's basis, and are updated by a call to updateParalleloBasis().
 

Methods in jpicedt.graphic.model that return PicVector
 PicVector AbstractCurve.getIncomingTangent(int subdivIndex)
          Return a non-normalized vector tangent to the incoming segment (i.e., wrt the control-point that comes before the given subdivision point)
 PicVector AbstractCurve.getOutgoingTangent(int subdivIndex)
          Return a non-normalized vector tangent to the outcoming segment (i.e., wrt the control-point that comes after the given subdivision point)
 PicVector PicNodeConnection.getTangentA(PicVector v)
          Return the tangent to the node connection at node A.
 PicVector PicNodeConnection.getTangentB(PicVector v)
          Return the tangent to the node connection at node B.
protected  PicVector PicParallelogram.toParalleloBasisCoordinates(PicPoint ptOrg, PicPoint ptSrc, PicVector ptDest)
          Compute the contravariant coordinate of the given point "ptSrc" along the "l2r" and "b2t" vectors of the parallelogram's basis, the origin of the basis being set at "ptOrg" This simply reduces to a contravariant change of coordinates from the cartesian basis to the (non-orthonormalized) parallelogram basis.
To wind up : denoting OM = vec(ptOrg -> ptSrc), (e1,e2) the cartesian basis (ie std model-coordinates), and (x',y') the new coords in the (l2r,b2t) basis, yields :
OM = x e1 + y e2 = x' l2r + y' b2t.
 

Methods in jpicedt.graphic.model with parameters of type PicVector
 PicVector PicNodeConnection.getTangentA(PicVector v)
          Return the tangent to the node connection at node A.
 PicPoint PicEllipse.getTangentAtAngleEnd(PicVector pt)
          Utility for computing arrow direction.
 PicPoint PicEllipse.getTangentAtAngleStart(PicVector pt)
          Utility for computing arrow direction.
 PicVector PicNodeConnection.getTangentB(PicVector v)
          Return the tangent to the node connection at node B.
protected  PicVector PicParallelogram.toParalleloBasisCoordinates(PicPoint ptOrg, PicPoint ptSrc, PicVector ptDest)
          Compute the contravariant coordinate of the given point "ptSrc" along the "l2r" and "b2t" vectors of the parallelogram's basis, the origin of the basis being set at "ptOrg" This simply reduces to a contravariant change of coordinates from the cartesian basis to the (non-orthonormalized) parallelogram basis.
To wind up : denoting OM = vec(ptOrg -> ptSrc), (e1,e2) the cartesian basis (ie std model-coordinates), and (x',y') the new coords in the (l2r,b2t) basis, yields :
OM = x e1 + y e2 = x' l2r + y' b2t.
 

Uses of PicVector in jpicedt.graphic.view
 

Fields in jpicedt.graphic.view declared as PicVector
protected  PicVector DefaultViewFactory.AbstractCurveView.arrow1Dir
           
protected  PicVector DefaultViewFactory.PicNodeConnectionView.arrow1Dir
           
protected  PicVector DefaultViewFactory.AbstractCurveView.arrow2Dir
           
protected  PicVector DefaultViewFactory.PicNodeConnectionView.arrow2Dir
           
 


http://www.jpicedt.org

Submit a bug : syd@jpicedt.org