3ds Max C++ API Reference
Loading...
Searching...
No Matches
point4.h File Reference
#include "GeomExport.h"
#include "point3.h"
#include <cassert>

Classes

class  Point4
 

Functions

Point4 CrossProd (const Point4 &a, const Point4 &b, const Point4 &c)
 
int MaxComponent (const Point4 &a)
 
int MinComponent (const Point4 &a)
 
Point4 Normalize (const Point4 &a)
 
Point4 FNormalize (const Point4 &a)
 
float Length (const Point4 &v)
 
float FLength (const Point4 &v)
 
constexpr float LengthSquared (const Point4 &v)
 
constexpr Point4 operator* (const Point4 &a, float f)
 
constexpr Point4 operator* (float f, const Point4 &a)
 
Point4 operator/ (const Point4 &a, float f)
 
constexpr Point4 operator+ (const Point4 &a, float f)
 
constexpr Point4 operator+ (float f, const Point4 &a)
 
constexpr Point4 operator- (const Point4 &a, float f)
 
constexpr float DotProd (const Point4 &a, const Point4 &b)
 

Function Documentation

◆ CrossProd()

Point4 CrossProd ( const Point4 a,
const Point4 b,
const Point4 c 
)

◆ MaxComponent()

int MaxComponent ( const Point4 a)
inline
301{
302 return a.MaxComponent();
303}
float a
Definition: texutil.h:51

◆ MinComponent()

int MinComponent ( const Point4 a)
inline
305{
306 return a.MinComponent();
307}

◆ Normalize()

Point4 Normalize ( const Point4 a)
inline
310{
311 return a.Normalize();
312}

◆ FNormalize()

Point4 FNormalize ( const Point4 a)
inline
314{
315 return a.FNormalize();
316}

◆ Length()

float Length ( const Point4 v)
inline
319{
320 return v.Length();
321}
float Length() const
Definition: point4.h:120

◆ FLength()

float FLength ( const Point4 v)
inline
323{
324 return v.FLength();
325}
float FLength() const
Definition: point4.h:124

◆ LengthSquared()

constexpr float LengthSquared ( const Point4 v)
constexpr
327{
328 return v.LengthSquared();
329}
constexpr float LengthSquared() const
Definition: point4.h:116

◆ operator*() [1/2]

constexpr Point4 operator* ( const Point4 a,
float  f 
)
constexpr
Remarks
Returns a Point4 that is the specified Point4 multiplied by the specified float.
334{
335 return Point4(a) *= f;
336}
Definition: point4.h:41

◆ operator*() [2/2]

constexpr Point4 operator* ( float  f,
const Point4 a 
)
constexpr
338{
339 return a * f;
340}

◆ operator/()

Point4 operator/ ( const Point4 a,
float  f 
)
inline
Remarks
Returns a Point4 that is the specified Point4 divided by the specified float.
345{
346 return Point4(a) /= f;
347}

◆ operator+() [1/2]

constexpr Point4 operator+ ( const Point4 a,
float  f 
)
constexpr
Remarks
Returns a Point4 that is the specified Point4 with the specified floating point valued added to each component x, y, z and w.
352{
353 return Point4(a) += f;
354}

◆ operator+() [2/2]

constexpr Point4 operator+ ( float  f,
const Point4 a 
)
constexpr
356{
357 return a + f;
358}

◆ operator-()

constexpr Point4 operator- ( const Point4 a,
float  f 
)
constexpr
360{
361 return a + -f;
362}

◆ DotProd()

constexpr float DotProd ( const Point4 a,
const Point4 b 
)
constexpr
365{
366 return a % b;
367}
float float b
Definition: texutil.h:51