Uses of Class
drawit.IntVector
Package | Description |
---|---|
drawit | |
drawit.shapegroups1 |
-
Uses of IntVector in drawit
Methods in drawit that return IntVector Modifier and Type Method Description IntVector
IntPoint. minus(IntPoint other)
Returns anIntVector
object representing the displacement fromother
tothis
.IntVector
IntVector. scale(double xFactor, double yFactor)
Returns the vector obtained by multiplying this vector's X coordinate by factorxFactor
and its Y coordinate by factoryFactor
.Methods in drawit with parameters of type IntVector Modifier and Type Method Description long
IntVector. crossProduct(IntVector other)
Returns the cross product of this vector and the given vector.long
IntVector. dotProduct(IntVector other)
Returns the dot product of this vector and the given vector.boolean
IntVector. equals(IntVector other)
boolean
IntVector. isCollinearWith(IntVector other)
Returns whether this vector is collinear with the given vector.IntPoint
IntPoint. plus(IntVector vector)
Returns anIntPoint
object representing the point obtained by displacing this point by the given vector.static IntPoint[]
PointArrays. translate(IntPoint[] points, IntVector delta)
Returns a new array whose elements are the elements of the given array, translated along the given vector. -
Uses of IntVector in drawit.shapegroups1
Methods in drawit.shapegroups1 with parameters of type IntVector Modifier and Type Method Description void
ShapeGroup. translate(IntVector delta)
Translates (= displaces) the shapes contained directly or indirectly by this shape group along the given vector.