3ds Max C++ API Reference
point4.h File Reference
#include "GeomExport.h"
#include "maxheap.h"
#include "point3.h"
#include "assert1.h"

Classes

class  Point4
 

Functions

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

Function Documentation

◆ Length()

float Length ( const Point4 v)
inline
259 {
260  return v.Length();
261 }
float Length() const
Definition: point4.h:243

◆ FLength()

float FLength ( const Point4 v)
inline
264 {
265  return v.FLength();
266 }
float FLength() const
Definition: point4.h:248

◆ LengthSquared()

float LengthSquared ( const Point4 v)
inline
269 {
270  return v.LengthSquared();
271 }
float LengthSquared() const
Definition: point4.h:253

◆ MaxComponent()

int MaxComponent ( const Point4 )

◆ MinComponent()

int MinComponent ( const Point4 )

◆ Normalize()

Point4 Normalize ( const Point4 )

◆ FNormalize()

Point4 FNormalize ( const Point4 )

◆ CrossProd()

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

◆ operator*() [1/2]

Point4 operator* ( float  f,
const Point4 a 
)
inline
Remarks
Returns a Point4 that is the specified Point4 multiplied by the specified float.
360 {
361  return (Point4(a.x * f, a.y * f, a.z * f, a.w * f));
362 }
Definition: point4.h:43
float w
Definition: point4.h:50
float y
Definition: point4.h:48
float x
Definition: point4.h:47
float z
Definition: point4.h:49

◆ operator*() [2/2]

Point4 operator* ( const Point4 a,
float  f 
)
inline
Remarks
Returns a Point4 that is the specified Point4 multiplied by the specified float.
367 {
368  return (Point4(a.x * f, a.y * f, a.z * f, a.w * f));
369 }

◆ operator/()

Point4 operator/ ( const Point4 a,
float  f 
)
inline
Remarks
Returns a Point4 that is the specified Point4 divided by the specified float.
374 {
375  DbgAssert(f != 0.0f);
376  float invF = 1.0f / f; // Mimic 2019 behavior
377  return (Point4(a.x * invF, a.y * invF, a.z * invF, a.w * invF));
378 }
#define DbgAssert(expr)
Definition: assert1.h:82

◆ operator+()

Point4 operator+ ( const Point4 a,
float  f 
)
inline
Remarks
Returns a Point4 that is the specified Point4 with the specified floating point valued added to each component x, y, z and w.
383 {
384  return (Point4(a.x + f, a.y + f, a.z + f, a.w + f));
385 }

◆ DotProd()

float DotProd ( const Point4 a,
const Point4 b 
)
inline
399 {
400  return (a.x * b.x + a.y * b.y + a.z * b.z + a.w * b.w);
401 }