Package | Description |
---|---|
org.graphstream.ui.geom | |
org.graphstream.ui.view.util |
Modifier and Type | Class and Description |
---|---|
class |
Point3
3D point.
|
Modifier and Type | Field and Description |
---|---|
static Point2 |
Point2.NULL_POINT2
Specific point at (0,0).
|
Modifier and Type | Method and Description |
---|---|
Point2 |
Point2.interpolate(Point2 other,
double factor)
Create a new point linear interpolation of this and
other . |
Modifier and Type | Method and Description |
---|---|
void |
Point2.copy(Point2 other)
Make this a copy of other.
|
void |
Vector2.copy(Point2 point)
Make this a copy of
point . |
double |
Point2.distance(Point2 other)
Distance between this and
other . |
Point2 |
Point2.interpolate(Point2 other,
double factor)
Create a new point linear interpolation of this and
other . |
void |
Point2.move(Point2 p)
Move of given point
p . |
void |
Point2.scale(Point2 s)
Scale by factor s.
|
void |
Point2.swap(Point2 other)
Exchange the values of this and other.
|
Constructor and Description |
---|
Point2(Point2 other)
New copy of other.
|
Vector2(Point2 point)
New vector copy of
point . |
Vector2(Point2 from,
Point2 to) |
Modifier and Type | Method and Description |
---|---|
static Point2 |
CubicCurve.derivative(Point2 p0,
Point2 p1,
Point2 p2,
Point3 p3,
double t)
Derivative point of a cubic Bézier curve according to control points
`x0`, `x1`, `x2` and `x3` at parametric position `t` of the curve.
|
static Point2 |
CubicCurve.derivative(Point2 p0,
Point2 p1,
Point2 p2,
Point3 p3,
double t,
Point2 result)
Store in `result` the derivative point of a cubic Bézier curve according
to control points `x0`, `x1`, `x2` and `x3` at parametric position `t` of
the curve.
|
static Point2 |
CubicCurve.eval(Point2 p0,
Point2 p1,
Point2 p2,
Point2 p3,
double t)
Evaluate a cubic Bézier curve according to control points `p0`, `p1`,
`p2` and `p3` and return the position at parametric position `t` of the
curve.
|
static Point2 |
CubicCurve.eval(Point2 p0,
Point2 p1,
Point2 p2,
Point2 p3,
double t,
Point2 result)
Evaluate a cubic Bézier curve according to control points `p0`, `p1`,
`p2` and `p3` and store the position at parametric position `t` of the
curve in `result`.
|
Modifier and Type | Method and Description |
---|---|
static Point2 |
CubicCurve.derivative(Point2 p0,
Point2 p1,
Point2 p2,
Point3 p3,
double t)
Derivative point of a cubic Bézier curve according to control points
`x0`, `x1`, `x2` and `x3` at parametric position `t` of the curve.
|
static Point2 |
CubicCurve.derivative(Point2 p0,
Point2 p1,
Point2 p2,
Point3 p3,
double t,
Point2 result)
Store in `result` the derivative point of a cubic Bézier curve according
to control points `x0`, `x1`, `x2` and `x3` at parametric position `t` of
the curve.
|
static Point2 |
CubicCurve.eval(Point2 p0,
Point2 p1,
Point2 p2,
Point2 p3,
double t)
Evaluate a cubic Bézier curve according to control points `p0`, `p1`,
`p2` and `p3` and return the position at parametric position `t` of the
curve.
|
static Point2 |
CubicCurve.eval(Point2 p0,
Point2 p1,
Point2 p2,
Point2 p3,
double t,
Point2 result)
Evaluate a cubic Bézier curve according to control points `p0`, `p1`,
`p2` and `p3` and store the position at parametric position `t` of the
curve in `result`.
|
static Vector2 |
CubicCurve.perpendicular(Point2 p0,
Point2 p1,
Point2 p2,
Point2 p3,
double t)
The perpendicular vector to the curve defined by control points `p0`,
`p1`, `p2` and `p3` at parametric position `t`.
|
static Vector2 |
CubicCurve.perpendicular(Point2 p0,
Point2 p1,
Point2 p2,
Point2 p3,
double t,
Vector2 result)
Store in `result` the perpendicular vector to the curve defined by
control points `p0`, `p1`, `p2` and `p3` at parametric position `t`.
|
Copyright © 2015. All rights reserved.