Point2f constructor

Point2f(
  1. double x,
  2. double y
)

Implementation

factory Point2f(double x, double y) {
  final ptr = calloc<cvg.Point2f>()
    ..ref.x = x
    ..ref.y = y;
  return Point2f.fromPointer(ptr);
}