luxonis / depthai-core

DepthAI C++ Library
MIT License
238 stars 127 forks source link

Expanded RotatedRect object definition to accept floats #1173

Closed aljazkonec1 closed 1 week ago

aljazkonec1 commented 1 week ago

This PR adds a new definition to initialize RotatedRect object with just floats.

moratom commented 1 week ago

Agree with @asahtik - as an example: dai.RotatedRect(center=dai.Point2f(200.0, 300.0), size=dai.Size2f(100, 200),angle=0.7) is a lot more readable than dai.RotatedRect(200.0, 300.0, 100, 200, 0.7)