thug/Code/Sys/ngc/p_triangle.h

41 lines
969 B
C
Raw Normal View History

2016-02-13 21:39:12 +00:00
//#ifndef _TRIANGLE_H_
//#define _TRIANGLE_H_
//
//#include "p_hw.h"
//#include "p_matrix.h"
//
//class NsTriangle
//{
// NsVector m_corner[3];
//public:
// NsTriangle ();
// NsTriangle ( NsVector * pCorner0, NsVector * pCorner1, NsVector * pCorner2 );
// NsTriangle ( float x0, float y0, float z0, float x1, float y1, float z1, float x2, float y2, float z2 );
//
// void translate ( NsVector * pTrans );
//
// void set ( NsVector * pCorner0, NsVector * pCorner1, NsVector * pCorner2 );
// void set ( float x0, float y0, float z0, float x1, float y1, float z1, float x2, float y2, float z2 );
//
// NsVector * corner ( int c ) { return &m_corner[c]; }
//};
//
//class NsLine
//{
//public:
// NsVector start;
// NsVector end;
//
// int intersectTriangle ( float * distance, NsTriangle * pTriangle );
//};
//
//typedef struct {
// NsVector center;
// float radius;
//} NsSphere;
//
//#endif // _TRIANGLE_H_