Public Member Functions | Public Attributes

CollisionVNormal Class Reference

Search for all occurrences

Detailed Description

See also:
Class ICollision, Class CollisionOps, Class CollisionPlane, Class CollisionSphere, Class CollisionMesh, Class Box3, Class Point3

Description:
This class is available in release 4.0 and later only.

This class represents a general list of collision vertex normals.
Data Members:
Point3 norm;

The normal vector

DWORD smooth;

The smoothing flag.

CollisionVNormal *next;

A pointer to the next normal in the linked list.

BOOL init;

The initialization flag.

#include <icollision.h>

Inheritance diagram for CollisionVNormal:
Inheritance graph
[legend]

List of all members.

Public Member Functions

  CollisionVNormal ()
  CollisionVNormal (Point3 &n, DWORD s)
  ~CollisionVNormal ()
void  AddNormal (Point3 &n, DWORD s)
Point3 GetNormal (DWORD s)
void  Normalize ()

Public Attributes

Point3  norm
DWORD  smooth
CollisionVNormal next
BOOL  init

Constructor & Destructor Documentation

CollisionVNormal ( ) [inline]
Remarks:
Constructor.
Default Implementation:
{smooth=0;next=NULL;init=FALSE;norm=Point3(0,0,0);}
{smooth=0;next=NULL;init=FALSE;norm=Point3(0,0,0);}
CollisionVNormal ( Point3 n,
DWORD  s 
) [inline]
Remarks:
Constructor.
Parameters:
Point3 &n

The vector to initialize with.

DWORD s

The smoothing flag to initialize with.
Default Implementation:
{next=NULL;init=TRUE;norm=n;smooth=s;}
{next=NULL;init=TRUE;norm=n;smooth=s;}
Remarks:
Destructor.
Default Implementation:
{delete next;}

Member Function Documentation

void AddNormal ( Point3 n,
DWORD  s 
)
Remarks:
Add a vector to the list.
Parameters:
Point3 &n

The vector to add.

DWORD s

The smoothing flag to add.
Point3& GetNormal ( DWORD  s )
Remarks:
Returns the specified normal from the list.
Parameters:
DWORD s

The index of the normal in the list.
void Normalize ( )
Remarks:
This method normalizes the vector.

Member Data Documentation

DWORD smooth
BOOL init

CollisionVNormal CollisionVNormal CollisionVNormal CollisionVNormal CollisionVNormal CollisionVNormal CollisionVNormal CollisionVNormal CollisionVNormal CollisionVNormal
CollisionVNormal CollisionVNormal CollisionVNormal CollisionVNormal CollisionVNormal CollisionVNormal CollisionVNormal CollisionVNormal CollisionVNormal CollisionVNormal