v2.0.2
Instance Methods | Class Methods | Properties | List of all members
CC3NodePuncture Class Reference

#import <CC3NodeVisitor.h>

Inheritance diagram for CC3NodePuncture:
Inheritance graph
[legend]

Instance Methods

(id) - initOnNode:fromRay:
 

Class Methods

(id) + punctureOnNode:fromRay:
 

Properties

CC3Vector globalPunctureLocation
 
CC3Nodenode
 
CC3Vector punctureLocation
 
float sqGlobalPunctureDistance
 

Detailed Description

Helper class for CC3NodePuncturingVisitor that tracks a node and the location of its puncture.

Method Documentation

- (id) initOnNode: (CC3Node *)  aNode
fromRay: (CC3Ray aRay 

Initializes this instance with the specified node and ray.

+ (id) punctureOnNode: (CC3Node *)  aNode
fromRay: (CC3Ray aRay 

Allocates and initializes an autoreleased instance with the specified node and ray.

Property Documentation

- (CC3Vector) globalPunctureLocation
readnonatomicassign

The location of the puncture, in the global coordinate system.

- (CC3Node*) node
readnonatomicassign

The punctured node.

- (CC3Vector) punctureLocation
readnonatomicassign

The location of the puncture, in the local coordinate system of the punctured node.

- (float) sqGlobalPunctureDistance
readnonatomicassign

The square of the distance from the startLocation of the ray to the puncture.

This is used to sort the punctures by distance from the start of the ray.


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