Rect Struct Documentation

struct Rect

Namespace:datalogics_interface

Detailed Description

A rect holds four coordinates for a rectangle.

The coordinates for a rectangle include left, top, right, bottom. Width () and height () defines the rectangle's width and height. LLx and LLy defines lower left corner, and URx and URy defines the upper right corner.

Uses types

Constructor & Destructor Documentation

Rect

Rect()

Rect

Rect(double ll_x, double ll_y, double ur_x, double ur_y)

Parameters

ll_x: double
ll_y: double
ur_x: double
ur_y: double

Field Documentation

ll_x

ll_x

ll_y

ll_y

ur_x

ur_x

ur_y

ur_y

Member Function Documentation

bottom

double bottom()

Returns:

double

height

double height()

Returns:

double

is_empty

bool is_empty()

Returns:

bool

left

double left()

Returns:

double

set_bottom

void set_bottom(double val)

Parameters

val: double

Returns:

void

set_left

void set_left(double val)

Parameters

val: double

Returns:

void

set_right

void set_right(double val)

Parameters

val: double

Returns:

void

set_top

void set_top(double val)

Parameters

val: double

Returns:

void

to_string

std::string to_string()

Returns:

std::string

top

double top()

Returns:

double

width

double width()

Returns:

double