DynamicPoint constructor

DynamicPoint({
  1. required double x,
  2. required double y,
  3. required double ox,
  4. required double oy,
  5. required double vx,
  6. required double vy,
})

Coordinate point with physical properties at the edge of the widget.

Axis current position x

double x;

Axis current position y

double y;

X-axis start position

double ox;

Y-axis start position

double oy;

The current speed of the point movement along the X axis

double vx;

The current speed of the point movement along the Y axis

double vy;

Next, the same point on the edge of the widget

DynamicPoint? pNext;

Previous, the same point on the edge of the widget

DynamicPoint? pPrev;

The vertex of the control vector of the cubic Bezier line, located from the side of the next point on the edge of the widget.

Offset? cNext;

The vertex of the control vector of the cubic Bezier line, located to the side of the previous point on the edge of the widget.

Offset? cPrev;

Implementation

/// Axis current position y
/// ```
/// double y;
/// ```

/// X-axis start position
/// ```
/// double ox;
/// ```

/// Y-axis start position
/// ```
/// double oy;
/// ```

/// The current speed of the point movement along the X axis
/// ```
/// double vx;
/// ```

/// The current speed of the point movement along the Y axis
/// ```
/// double vy;
/// ```

/// Next, the same point on the edge of the widget
/// ```
/// DynamicPoint? pNext;
/// ```

/// Previous, the same point on the edge of the widget
/// ```
/// DynamicPoint? pPrev;
/// ```

/// The vertex of the control vector of the cubic Bezier line, located from the side of the next point on the edge of the widget.
/// ```
/// Offset? cNext;
/// ```

/// The vertex of the control vector of the cubic Bezier line, located to the side of the previous point on the edge of the widget.
/// ```
/// Offset? cPrev;
/// ```
///
DynamicPoint({
  required this.x,
  required this.y,
  required this.ox,
  required this.oy,
  required this.vx,
  required this.vy,
});