/[projectaxis]/projectaxis/IsoEngine/IsoGeometryTools.h
ViewVC logotype

Diff of /projectaxis/IsoEngine/IsoGeometryTools.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by vovansim, Wed May 28 01:38:54 2003 UTC revision 1.2 by vovansim, Sat Jun 7 01:43:40 2003 UTC
# Line 3  Line 3 
3   * such structs as POINT and RECT.   * such structs as POINT and RECT.
4   *   *
5   * Revision history:   * Revision history:
6     *     v1.3 - added the IsRectEmpty and the IntersectRect methods
7   *     v1.2 - added the setRect method   *     v1.2 - added the setRect method
8   *     v1.1 - added the PointInRect and the setRectEmpty methods   *     v1.1 - added the PointInRect and the setRectEmpty methods
9   *   *
10   * @author <A href="mailto:vovansim@hotmail.com">Vovansim (aka Scorpion)</A>   * @author <A href="mailto:vovansim@hotmail.com">Vovansim (aka Scorpion)</A>
11   * @version 1.2   * @version 1.3
12   * @date May 26, 2003   * @date June 4, 2003
13   */   */
14    
15  #ifndef ISO_GEOMETRY_TOOLS_H  #ifndef ISO_GEOMETRY_TOOLS_H
# Line 47  void CopyRect(RECT* destination, RECT* s Line 48  void CopyRect(RECT* destination, RECT* s
48  /** Moves the rectangle passed in by the values passed in. */  /** Moves the rectangle passed in by the values passed in. */
49  void OffsetRect(RECT* rectangle, int dx, int dy);  void OffsetRect(RECT* rectangle, int dx, int dy);
50    
51    /** Moves the rectangle passed in by the values contained in the POINT passed in. The x component of the point is used as the x offset, and the y component - as the y offset. */
52  void OffsetRect(RECT* rectangle, POINT point);  void OffsetRect(RECT* rectangle, POINT point);
53    
54    /** Returns true if the rectangle passed in has the width and / or height of 0, and false otherwise. */
55    bool IsRectEmpty(RECT* rectangle);
56    
57    /** Puts the intersection of the two rectangles passed in into the destination rectangle
58     *
59     * @note The intersection is the largest rectangle contained in both existing rectangles.
60     * @return True if the intersection is non-empty, and false if it is.
61     */
62    bool IntersectRect(RECT* destination, RECT* rectangle1, RECT* rectangle2);
63    
64  /** Makes an SDL_Rect out of a RECT. */  /** Makes an SDL_Rect out of a RECT. */
65  SDL_Rect* GetSDLRect(RECT* r);  SDL_Rect* GetSDLRect(RECT* r);
66  /////////////////////////////// End RECT tools ////////////////////////////////  /////////////////////////////// End RECT tools ////////////////////////////////

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26