3ds Max C++ API Reference
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
300 {
301  return a.MaxComponent();
302 }
int MaxComponent() const

◆ MinComponent()

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

◆ Normalize()

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

◆ FNormalize()

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

◆ Length()

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

◆ FLength()

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

◆ LengthSquared()

constexpr float LengthSquared ( const Point4 v)
constexpr
326 {
327  return v.LengthSquared();
328 }
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.
333 {
334  return Point4(a) *= f;
335 }
Definition: point4.h:41

◆ operator*() [2/2]

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

◆ operator/()

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

◆ 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.
351 {
352  return Point4(a) += f;
353 }

◆ operator+() [2/2]

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

◆ operator-()

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

◆ DotProd()

constexpr float DotProd ( const Point4 a,
const Point4 b 
)
constexpr
364 {
365  return a % b;
366 }