math.h File Reference

#include "macros.h"

Include dependency graph for math.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Namespaces

namespace   mudbox

Classes

class   mudbox::Vector
  Represents a 3D vector or point with S23E8 floating point elements. More...
class   mudbox::Vector4
  A four dimensionsional vector (X, Y, Z, and W). More...
class   mudbox::Color
  Represents a color with four components: red, green, blue, alpha. More...
class   mudbox::AxisAlignedBoundingBox
  Represents a bounding box whose axes are aligned with the coordinate system. More...
class   mudbox::Base
  Represents a local coordinate basis comprising three axes that define a coordinate system. More...
class   mudbox::SubSpace
  This class will be removed from the SDK. More...
class   mudbox::Matrix
  This class represents a 4x4 transformation matrix. More...
class   mudbox::Quaternion
  The Quaternion class is used to represent rotations in most cases. More...
class   mudbox::DualQuaternion
  The DualQuaternion class is used to represent rigid transformations in most cases. More...
class   mudbox::Line
  Represents a line segment in 3d space. More...
class   mudbox::Selector
  Mudbox uses this class to provide information about specific regions in the space. More...
class   mudbox::CheckableFloat
  A container class that holds a boolean and a float value. More...
class   mudbox::AttributeCheckableFloat

Typedefs

typedef AttributeInstance<
Vector > 
avector
typedef AttributeInstance<
Vector4 > 
avector4
typedef AttributeInstance<
Color > 
acolor
typedef AttributeCheckableFloat  acheckablefloat

Functions

MBDLL_DECL Vector  operator * (float f, const Vector &v) throw ()
  Multiplies a float scalar value by a vector, the result is a vector.
MBDLL_DECL Vector  operator * (int i, const Vector &v) throw ()
  Multiplies an integer scalar value by a vector, the result is a vector.
MBDLL_DECL AttributeWidget *  CreateNewVectorWidget (QWidget *pParent, int iWidth, avector *pAttribute)
MBDLL_DECL AttributeWidget *  CreateNewVector4Widget (QWidget *pParent, int iWidth, avector4 *pAttribute)
Color  operator * (float f, const Color &c)
  Multiplies a scalar float value by a Color.
MBDLL_DECL AttributeWidget *  CreateNewColorWidget (QWidget *pParent, int iWidth, acolor *pAttribute)
MBDLL_DECL Vector  operator * (const Vector &v, const Matrix &m)
MBDLL_DECL Vector  operator * (const Matrix &m, const Vector &v)
MBDLL_DECL AttributeWidget *  CreateNewCheckableFloatWidget (QWidget *pParent, int iWidth, class AttributeCheckableFloat *pAttribute)

Typedef Documentation

typedef AttributeInstance<Vector> mudbox::avector
 
typedef AttributeInstance<Vector4> mudbox::avector4
 
typedef AttributeInstance<Color> mudbox::acolor
 
typedef AttributeCheckableFloat mudbox::acheckablefloat
 

Function Documentation

MBDLL_DECL Vector operator * float  f,
const Vector &  v
throw () [inline]
 

Multiplies a float scalar value by a vector, the result is a vector.

00306 { return v*f; };
MBDLL_DECL Vector operator * int  i,
const Vector &  v
throw () [inline]
 

Multiplies an integer scalar value by a vector, the result is a vector.

00310 { return float(i)*v; };
MBDLL_DECL AttributeWidget* CreateNewVectorWidget QWidget *  pParent,
int  iWidth,
avector pAttribute
 
MBDLL_DECL AttributeWidget* CreateNewVector4Widget QWidget *  pParent,
int  iWidth,
avector4 pAttribute
 
Color operator * float  f,
const Color &  c
[inline]
 

Multiplies a scalar float value by a Color.

00497 { return Color( c.r*f, c.g*f, c.b*f, c.a*f ); };
MBDLL_DECL AttributeWidget* CreateNewColorWidget QWidget *  pParent,
int  iWidth,
acolor pAttribute
 
MBDLL_DECL Vector operator * const Vector &  v,
const Matrix &  m
[inline]
 
01230 {
01231     return Vector( 
01232         v.m_fX*m._11+v.m_fY*m._21+v.m_fZ*m._31+m._41,
01233         v.m_fX*m._12+v.m_fY*m._22+v.m_fZ*m._32+m._42,
01234         v.m_fX*m._13+v.m_fY*m._23+v.m_fZ*m._33+m._43 );
01235 };
MBDLL_DECL Vector operator * const Matrix &  m,
const Vector &  v
[inline]
 
01238 {
01239     return Vector( 
01240         v.m_fX*m._11+v.m_fY*m._12+v.m_fZ*m._13+m._14,
01241         v.m_fX*m._21+v.m_fY*m._22+v.m_fZ*m._23+m._24,
01242         v.m_fX*m._31+v.m_fY*m._32+v.m_fZ*m._33+m._34 );
01243 };
MBDLL_DECL AttributeWidget* CreateNewCheckableFloatWidget QWidget *  pParent,
int  iWidth,
class AttributeCheckableFloat *  pAttribute