Package | Description |
---|---|
com.yworks.yfiles.algorithms | |
com.yworks.yfiles.layout |
Provides essential classes and interfaces that constitute the infrastructure for automatic graph layout generation.
|
Modifier and Type | Method and Description |
---|---|
static YVector |
YVector.add(YVector v,
YVector w)
Adds two vectors and returns the result.
|
static YVector |
YVector.getNormal(YVector v)
Returns this vector with unit length.
|
static YVector |
YVector.orthoNormal(YVector v)
Returns the vector which is orthogonal to the given one and has unit length.
|
YVector |
YVector.rotate(double angle)
Returns a new
YVector instance that is obtained by rotating this vector by the given angle (measured in radians)
in clockwise direction (with regards to screen coordinates). |
YVector |
LineSegment.toYVector()
Returns the vector pointing from the first end point to the second end point of the line segment.
|
Modifier and Type | Method and Description |
---|---|
static YPoint |
YVector.add(YPoint p,
YVector v)
Adds the vector to a point and returns the resulting point.
|
void |
YVector.add(YVector v)
Adds a vector to this vector.
|
static YVector |
YVector.add(YVector v,
YVector w)
Adds two vectors and returns the result.
|
static double |
YVector.angle(YVector v1,
YVector v2)
Returns the angle (measured in radians) between two vectors in clockwise order (with regards to screen coordinates) from
v1 to v2.
|
static YPoint |
Geom.calcIntersection(YPoint p1,
YVector d1,
YPoint p2,
YVector d2)
Calculates the intersection point of two affine lines.
|
static YVector |
YVector.getNormal(YVector v)
Returns this vector with unit length.
|
static YVector |
YVector.orthoNormal(YVector v)
Returns the vector which is orthogonal to the given one and has unit length.
|
static boolean |
YVector.rightOf(YVector v1,
YVector v2)
Returns true if vector v1 is on the right side of v2.
|
static double |
YVector.scalarProduct(YVector v1,
YVector v2)
Returns the value of the scalar product of two vectors.
|
Constructor and Description |
---|
AffineLine(YPoint p1,
YVector v)
Creates an affine line which is defined by a point and a vector.
|
YOrientedRectangle(YPoint position,
YDimension size,
YVector upVector)
Creates a new instance using the provided values to initialize anchor, size, and up vector.
|
YVector(YVector v)
Creates a new vector which is a copy of another vector.
|
Modifier and Type | Method and Description |
---|---|
static YVector |
EdgeLabelOrientationSupport.getEdgeLabelUpVector(PreferredPlacementDescriptor descriptor,
Direction segmentDirection)
Calculates the up vector of an edge label considering the preferred placement of the label as well as the direction of
the edge segment the label is attached to.
|
static YVector |
EdgeLabelOrientationSupport.getLabelUpVector(double rightVectorAngle)
Calculates the up vector for a label whose right vector is rotated clockwise by the given angle.
|