Supported Browsers Home   
GA_saveOptions Previous   
GA_sectRectCoord Next   
External Functions Up   

GA_sectRect

Compute the intersection between two rectangles.

Declaration

ibool GA_sectRect(
    GA_rect r1,
    GA_rect r2,
    GA_rect *d)

Prototype In

snap/graphics.h

Parameters

r1

First rectangle to intersect

r2

Second rectangle to intersect

d

Place to store the resulting intersection

 

Return Value

True if the rectangles intersect, false if not.

Description

Computes the intersection of two rectangles, and returns the result in a third. If the rectangles actually intersect (the intersection is not an empty rectangle) then this function returns true, otherwise it will return false.

See Also

GA_sectRectFast, GA_sectRectCoord, GA_unionRect

Copyright © 2002 SciTech Software, Inc. Visit our web site at http://www.scitechsoft.com