00001
00002
00003
00004
00005
00006
00007
00008
00015 #ifndef _FM_VOLUME_H_
00016 #define _FM_VOLUME_H_
00017
00018 namespace FMVolume
00019 {
00023 FCOLLADA_EXPORT float CalculateBoxVolume(const FMVector3& halfExtents);
00024
00028 FCOLLADA_EXPORT float CalculateSphereVolume(float radius);
00029
00035 FCOLLADA_EXPORT float CalculateEllipsoidVolume(float radius1, float radius2, float radius3);
00036
00041 FCOLLADA_EXPORT float CalculateEllipsoidEndVolume(const FMVector2& radius);
00042
00047 FCOLLADA_EXPORT float CalculateCylinderVolume(const FMVector2& radius, float height);
00048
00053 FCOLLADA_EXPORT float CalculateCapsuleVolume(const FMVector2& radius, float height);
00054
00059 FCOLLADA_EXPORT float CalculateConeVolume(const FMVector2& radius, float height);
00060
00066 FCOLLADA_EXPORT float CalculateTaperedCylinderVolume(const FMVector2& radius, const FMVector2& radius2, float height);
00067 }
00068
00069 #endif // _FM_VOLUME_H_