Point.fromXY constructor

Point.fromXY(
  1. double x,
  2. double y
)

Implementation

factory Point.fromXY(double x, double y) {
  final ptr = calloc<c.mnn_cv_point_t>()
    ..ref.x = x
    ..ref.y = y;
  return Point.fromPointer(ptr);
}