Ignore:
Timestamp:
01/16/06 19:33:48 (18 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/VUT/GtpVisibilityPreprocessor/src/Triangle3.h

    r191 r544  
    3737 
    3838  float GetSpatialAngle(const Vector3 &point) const; 
     39 
     40  float GetArea() const { 
     41          Vector3 v1=mVertices[0]-mVertices[1], v2=mVertices[2]-mVertices[1]; 
     42          return 0.5f * Magnitude(CrossProd(v2, v1)); 
     43  } 
    3944}; 
    4045 
Note: See TracChangeset for help on using the changeset viewer.