Public Member Functions

CC3NodeBoundingArea Class Reference

A bounding volume that defines a 2D bounding area for a node, and checks that bounding area against a given 2D bounding box, which is typically the bounding box of the CC3Layer. More...

#import <CC3BoundingVolumes.h>

Inheritance diagram for CC3NodeBoundingArea:
Inheritance graph
[legend]
Collaboration diagram for CC3NodeBoundingArea:
Collaboration graph
[legend]

List of all members.

Public Member Functions

(BOOL) - doesIntersectBounds:

Detailed Description

A bounding volume that defines a 2D bounding area for a node, and checks that bounding area against a given 2D bounding box, which is typically the bounding box of the CC3Layer.

This is useful for, and only applicable to, nodes that draw 2D content as overlays, such as CC3Billboards, when they are drawn as overlays.


Member Function Documentation

- (BOOL) doesIntersectBounds: (CGRect)  bounds

Returns whether this bounding volume intersects the specfied bounding rectangle.

This default implementation always returns YES. Subclasses will override appropriately.

This method is invoked automatically by nodes with 2D content, when the node is being drawn as a 2D overlay, to determine whether or not it should be drawn.


The documentation for this class was generated from the following file: