GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
TICKIT_RECT_INTERSECT(3) FreeBSD Library Functions Manual TICKIT_RECT_INTERSECT(3)

tickit_rect_intersect - obtain the intersection of two rectangles

#include <tickit.h>

bool tickit_rect_intersect(TickitRect *dst,
     const TickitRect *a, const TickitRect *b);

Link with -ltickit.

tickit_rect_intersect() tests if the two rectangles given by a and b intersect and if so, initialises the rectangle structure given by dst to contain it. It returns true if it did this. If the two given rectangles do not intersect then it returns false and does not modify the structure given by dst.

dst may be equal to either a or b, or it may refer to a distinct rectangle structure. The two source rectangles are read before the result is written.

To simply test if two given rectangles intersect without obtaining the actual intersection region, use tickit_rect_intersects(3).

tickit_rect_intersect() returns true if the rectangles intersect, and false if not.

tickit_rect_init_sized(3), tickit_rect_init_bounded(3), tickit_rect_intersects(3), tickit_rect_add(3), tickit_rect_subtract(3), tickit_rect(7), tickit(7)

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.