|
|
Triangle that is made with three ptr on point instead three instances of points
A trianglep is very usefull to share same point between more than one triangle.
| trianglep ()
| trianglep |
The default constructor is needed by maps, lists etc... It should never been used elsewhere !
| trianglep (point *pa,point *pb,point *pc,const CString &sName="")
| trianglep |
This ctor does not duplicates points !
| trianglep (
point *pa,
point *pb,
point *pc,
couleur* pcol,
const CString &sName="")
| trianglep |
This ctor does not duplicates points !
| trianglep (const trianglep &t)
| trianglep |
| ~trianglep ()
| ~trianglep |
[virtual]
Note, points are not deleted. This is voluntary Memory must be cleared by the trianglep user.
| const vect& Normal ()
| Normal |
[const virtual]
Reimplemented from planesurf.
| vect AVect (const point &p)
| AVect |
[const virtual]
Reimplemented from planesurf.
| void Translate (const vect &v)
| Translate |
[virtual]
Reimplemented from glsurface.
| void Render ()
| Render |
[const virtual]
Reimplemented from glsurface.
| glsurface* Duplicate ()
| Duplicate |
[const virtual]
Reimplemented from glsurface.
| point GPoint ()
| GPoint |
[const virtual]
Reimplemented from glsurface.
| float PlanSide (const planesurf *)
| PlanSide |
[const virtual]
| planesurf* Collision (
const point &poStart,
const vect &vPath,
point* pptInter,
glsolid* &pSolid)
| Collision |
[virtual]
This method returns true if a line segment passes through the triangle. If yes, this function can also return the intersection of the triangle and the line segment in ppIntersect
Reimplemented from glsurface.
| void SetColor (const couleur &col)
| SetColor |
[virtual]
Reimplemented from glsurface.
| void SetPoints (point* pa,point *pb,point *pc)
| SetPoints |
| const point& Getpa ()
| Getpa |
[const]
| const point& Getpb ()
| Getpb |
[const]
| const point& Getpc ()
| Getpc |
[const]
| const point* Getppa ()
| Getppa |
[const]
| const point* Getppb ()
| Getppb |
[const]
| const point* Getppc ()
| Getppc |
[const]
| point* Getppa ()
| Getppa |
| point* Getppb ()
| Getppb |
| point* Getppc ()
| Getppc |
| trianglep& operator= (const trianglep&)
| operator= |
[private]
| point* mpa | mpa |
[private]
| point* mpb | mpb |
[private]
| point* mpc | mpc |
[private]
| couleur* mpcol | mpcol |
[private]