val rotatedRect = new RotatedRect(
new Point2f(100, 100),
new Size2f(100, 100),
45
)
val point = new Point2f()
rotatedRect.points(point)
I would expect rotatedRect.points to accept Array[Point2f] or Point2fVector as a parameter, instead, Point2f is accepted. This seems like an oversight and results in a crash if Point2f is provided.
I would expect
rotatedRect.points
to acceptArray[Point2f]
orPoint2fVector
as a parameter, instead,Point2f
is accepted. This seems like an oversight and results in a crash ifPoint2f
is provided.Maybe I'm doing something wrong?