- Main Page
- Modules
- Namespaces
- Classes
- Files
- Related Pages

- File List
- File Members

# FMath/FMVolume.h

Go to the documentation of this file.

    00001 /*
    00002     Copyright (C) 2005-2007 Feeling Software Inc.
    00003     Portions of the code are:
    00004     Copyright (C) 2005-2007 Sony Computer Entertainment America
    00005
    00006     MIT License: http://www.opensource.org/licenses/mit-license.php
    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_