Namespaces | Functions

D:/SoftwareEntwicklung/C++/HLC/Tools/SoftPixelEngine/repository/sources/Base/spMath.hpp File Reference

#include "Base/spStandard.hpp"
#include "Base/spDimensionPoint2D.hpp"
#include "Base/spDimensionRect2D.hpp"
#include "Base/spDimensionLine3D.hpp"
#include "Base/spDimensionVector3D.hpp"
#include "Base/spDimensionTriangle3D.hpp"
#include "Base/spDimensionPlane3D.hpp"
#include "Base/spMathRadianDegree.hpp"
#include "Base/spMaterialColor.hpp"
#include "Base/spMathCore.hpp"
#include <stdlib.h>
#include <vector>

Go to the source code of this file.

Namespaces

namespace  sp
 

!!


namespace  sp::dim
 

Basic classes such as vectors, planes, matrix etc. can be found in this namespace.


namespace  sp::math
 

This namespace contains all mathematical basic functions such as sine, cosine, distance calculations etc.


Functions

template<typename T >
sp::math::getDistance (const dim::point2d< T > &PosA, const dim::point2d< T > &PosB)
 Returns the distance between the two given 2D points.
template<typename T >
sp::math::getDistance (const dim::vector3d< T > &PosA, const dim::vector3d< T > &PosB)
 Returns the distance between the two given 3D points.
template<typename T >
sp::math::getDistanceSq (const dim::point2d< T > &PosA, const dim::point2d< T > &PosB)
template<typename T >
sp::math::getDistanceSq (const dim::vector3d< T > &PosA, const dim::vector3d< T > &PosB)
template<typename T >
sp::math::getAngle (const dim::point2d< T > &A, const dim::point2d< T > &B)
template<typename T >
sp::math::getAngle (const dim::point2d< T > &A, const dim::point2d< T > &B, const T &OffsetAngle)
template<typename T >
dim::vector3d< T > sp::math::getNormalVectorSq (const dim::vector3d< T > &PosA, const dim::vector3d< T > &PosB, const dim::vector3d< T > &PosC)
 Returns normal vector computed by the three specified coordinates.
template<typename T >
dim::vector3d< T > sp::math::getNormalVector (const dim::vector3d< T > &PosA, const dim::vector3d< T > &PosB, const dim::vector3d< T > &PosC)
 Returns normalized normal vector computed by the three specified coordinates.
template<typename T >
dim::vector3d< T > sp::math::getBarycentricCoord (const dim::triangle3d< T > &Triangle, const dim::vector3d< T > &Point)
template<typename T >
void sp::math::sortContainerConst (std::vector< T > &ObjectList, bool(*lpFuncCmp)(const T &obj1, const T &obj2))
template<typename T >
void sp::math::sortContainer (std::vector< T > &ObjectList, bool(*lpFuncCmp)(T &obj1, T &obj2))
SP_EXPORT void sp::math::getVertexInterpolation (const dim::triangle3df &Triangle, const dim::vector3df &Pos, f32 &Vert, f32 &Horz)
template<class T >
sp::math::getVertexInterpolation (const T &VertexA, const T &VertexB, const T &VertexC, const f32 Vert, const f32 Horz)
SP_EXPORT dim::matrix4f sp::math::getTangentSpace (const dim::vector3df PosA, const dim::vector3df PosB, const dim::vector3df PosC, const dim::point2df MapA, const dim::point2df MapB, const dim::point2df MapC, dim::vector3df &Tangent, dim::vector3df &Binormal, dim::vector3df &Normal)
dim::vector4df sp::math::Convert (const video::color &Color)
 Returns color in form of a 4D vector. The color components R, G, B, and A are transformed to the range [0.0, 1.0].
video::color sp::math::Convert (const dim::vector4df &Color)
 Returns color in typical form. The color components R, G, B, and A are transformed to the range [0, 255].
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines