Rectangle_in_rectangle - hpgDesigns/hpgdesigns-dev.io GitHub Wiki

Description

Calculates the difference between two angles and returns the result.

Parameters

Parameter Data Type Description
sx1 double left coordinate of the source rectangle
sy1 double top coordinate of the source rectangle
sx2 double right coordinate of the source rectangle
sy2 double bottom coordinate of the source rectangle
dx1 double left coordinate of the destination rectangle
dy1 double top coordinate of the destination rectangle
dx2 double right coordinate of the destination rectangle
dy2 double bottom coordinate of the destination rectangle

Return Values

integer: Returns the intersection of the rectangles, 0 for none, 1 for encompassed, and 2 for overlapping.

Example Call

// demonstrates checking if two rectangles intersect

NOTOC

Category:Function:Real