Rectangle.fromPoints Method¶
Module: Rectangle
Definition¶
Creates a quadrangle from 4 points.
@staticmethod
from_points(top_left: Point, top_right: Point, bottom_right: Point, bottom_left: Point) -> Rectangle
Parameters
Returns
The newly created rectangle.
Exceptions
An error has occurred during Devices Library execution.
static Rectangle fromPoints(Point topLeft, Point topRight, Point bottomRight, Point bottomLeft)
Parameters
Returns
The newly created rectangle.
Exceptions
An error has occurred during Devices Library execution.
public static Rectangle FromPoints(Point topLeft, Point topRight, Point bottomRight, Point bottomLeft)
Parameters
Returns
The newly created rectangle.
Exceptions
An error has occurred during Devices Library execution.
public static Rectangle fromPoints(Point topLeft, Point topRight, Point bottomRight, Point bottomLeft) throws DevicesException
Parameters
Returns
The newly created rectangle.
Exceptions
An error has occurred during Devices Library execution.
int id3DevicesRectangle_FromPoints (
ID3_DEVICES_RECTANGLE hRectangle,
const id3DevicesPoint * sTopLeft,
const id3DevicesPoint * sTopRight,
const id3DevicesPoint * sBottomRight,
const id3DevicesPoint * sBottomLeft)
Parameters
hRectangle
ID3_DEVICES_RECTANGLEin Handle to the Rectangle object.sTopLeft
const id3DevicesPoint *in Top-left corner of the quadrangle.sTopRight
const id3DevicesPoint *in Top-right corner of the quadrangle.sBottomRight
const id3DevicesPoint *in Bottom-right corner of the rectangle.sBottomLeft
const id3DevicesPoint *in Bottom-left corner of the rectangle.
Returns