BasePluginCameraCalcRoundedRectBorders Method |
Calculates some geometrical data of a rounded rectangle with the
given width, height and radius of the rounded corners.
Namespace: RAYLASE.Marker.CamerasPluginAssembly: RAYLASE.Marker.CamerasPlugin (in RAYLASE.Marker.CamerasPlugin.dll) Version: 2.21.0
Syntaxpublic static void CalcRoundedRectBorders(
double w,
double h,
double r,
double xx,
double yy,
out double xRange,
out double yRange,
out Size maxSize
)
Parameters
- w Double
- The rectangle's width.
- h Double
- The rectangle's height.
- r Double
- The corner radius.
- xx Double
- A position in x direction.
- yy Double
- A position in y direction.
- xRange Double
- The x range, i. e. the max. possible right value at the
given y position (because of symmetry there is the same value -xRange
on the rectangle's left side).
- yRange Double
- The y range, i. e. the max. possible top value at the
given x position (because of symmetry there is the same value -yRange
on the rectangle's bottom).
- maxSize Size
- The size of the biggest rectangle which can be
put into the rounded rectangle.
See Also