Hoops Visualize HPS  version 2018-SP2
Hoops Visualize HPS 3D Rendering Engine
Looking for a senior C++ dev?
I'm looking for work. Hire me!
HPS::ObjectPoint Class Reference

The ObjectPoint class is a basic 3D point that is assumed to represent a location in object space. More...

#include <hps.h>

Inheritance diagram for HPS::ObjectPoint:
Collaboration diagram for HPS::ObjectPoint:

Public Member Functions

 ObjectPoint (float px=0.0f, float py=0.0f, float pz=0.0f)
 Initializes a new Point. More...
 
 ObjectPoint (Point const &in_point)
 Copies the existing point in_point. More...
 
 ObjectPoint (WindowKey const &in_window, ObjectPoint const &in_point)
 Converts the point in_point to object space via in_window. More...
 
 ObjectPoint (WindowKey const &in_window, WorldPoint const &in_point)
 Converts the point in_point to object space via in_window. More...
 
 ObjectPoint (WindowKey const &in_window, CameraPoint const &in_point)
 Converts the point in_point to object space via in_window. More...
 
 ObjectPoint (WindowKey const &in_window, InnerWindowPoint const &in_point)
 Converts the point in_point to object space via in_window. More...
 
 ObjectPoint (WindowKey const &in_window, InnerPixelPoint const &in_point)
 Converts the point in_point to object space via in_window. More...
 
 ObjectPoint (WindowKey const &in_window, WindowPoint const &in_point)
 Converts the point in_point to object space via in_window. More...
 
 ObjectPoint (WindowKey const &in_window, PixelPoint const &in_point)
 Converts the point in_point to object space via in_window. More...
 
Point_3D const operator- () const
 
Vector_3D< float > const operator- (Point_3D const &p) const
 
Point_3D const operator- (Vector_3D< float > const &v) const
 
Point_3D const operator- (Vector_2D< float > const &v) const
 
bool operator== (Point_3D const &p) const
 
bool operator!= (Point_3D const &p) const
 
bool Equals (Point_3D const &p, int in_tolerance=32) const
 
Point_3Doperator*= (float s)
 
Point_3Doperator*= (Vector_3D< float > const &v)
 
Point_3Doperator*= (Vector_2D< float > const &v)
 
Point_3Doperator/= (float s)
 
Point_3Doperator/= (Vector_3D< float > const &v)
 
Point_3Doperator/= (Vector_2D< float > const &v)
 
Point_3D const operator* (float s) const
 
Point_3D const operator* (Vector_3D< float > const &v) const
 
Point_3D const operator* (Vector_2D< float > const &v) const
 
Point_3D const operator/ (float s) const
 
Point_3D const operator/ (Vector_3D< float > const &v) const
 
Point_3D const operator/ (Vector_2D< float > const &v) const
 
float & operator[] (size_t i)
 
float const & operator[] (size_t i) const
 
Point_3Doperator+= (Vector_3D< float > const &v)
 
Point_3Doperator+= (Vector_2D< float > const &v)
 
Point_3Doperator-= (Vector_3D< float > const &v)
 
Point_3Doperator-= (Vector_2D< float > const &v)
 
Point_3D const operator+ (Vector_3D< float > const &v) const
 
Point_3D const operator+ (Vector_2D< float > const &v) const
 

Static Public Member Functions

static HPS_INLINE Point_3D Origin ()
 
static HPS_INLINE Point_3D Zero ()
 

Public Attributes

float x
 
float y
 
float z
 

Private Member Functions

 ObjectPoint (WorldPoint const &in_point)
 
 ObjectPoint (CameraPoint const &in_point)
 
 ObjectPoint (InnerWindowPoint const &in_point)
 
 ObjectPoint (InnerPixelPoint const &in_point)
 
 ObjectPoint (WindowPoint const &in_point)
 
 ObjectPoint (PixelPoint const &in_point)
 

Detailed Description

The ObjectPoint class is a basic 3D point that is assumed to represent a location in object space.

Constructor & Destructor Documentation

◆ ObjectPoint() [1/15]

HPS::ObjectPoint::ObjectPoint ( float  px = 0.0f,
float  py = 0.0f,
float  pz = 0.0f 
)
inline

Initializes a new Point.

◆ ObjectPoint() [2/15]

HPS::ObjectPoint::ObjectPoint ( Point const &  in_point)
inline

Copies the existing point in_point.

◆ ObjectPoint() [3/15]

HPS::ObjectPoint::ObjectPoint ( WindowKey const &  in_window,
ObjectPoint const &  in_point 
)

Converts the point in_point to object space via in_window.

◆ ObjectPoint() [4/15]

HPS::ObjectPoint::ObjectPoint ( WindowKey const &  in_window,
WorldPoint const &  in_point 
)

Converts the point in_point to object space via in_window.

◆ ObjectPoint() [5/15]

HPS::ObjectPoint::ObjectPoint ( WindowKey const &  in_window,
CameraPoint const &  in_point 
)

Converts the point in_point to object space via in_window.

◆ ObjectPoint() [6/15]

HPS::ObjectPoint::ObjectPoint ( WindowKey const &  in_window,
InnerWindowPoint const &  in_point 
)

Converts the point in_point to object space via in_window.

◆ ObjectPoint() [7/15]

HPS::ObjectPoint::ObjectPoint ( WindowKey const &  in_window,
InnerPixelPoint const &  in_point 
)

Converts the point in_point to object space via in_window.

◆ ObjectPoint() [8/15]

HPS::ObjectPoint::ObjectPoint ( WindowKey const &  in_window,
WindowPoint const &  in_point 
)

Converts the point in_point to object space via in_window.

◆ ObjectPoint() [9/15]

HPS::ObjectPoint::ObjectPoint ( WindowKey const &  in_window,
PixelPoint const &  in_point 
)

Converts the point in_point to object space via in_window.

◆ ObjectPoint() [10/15]

HPS::ObjectPoint::ObjectPoint ( WorldPoint const &  in_point)
private

◆ ObjectPoint() [11/15]

HPS::ObjectPoint::ObjectPoint ( CameraPoint const &  in_point)
private

◆ ObjectPoint() [12/15]

HPS::ObjectPoint::ObjectPoint ( InnerWindowPoint const &  in_point)
private

◆ ObjectPoint() [13/15]

HPS::ObjectPoint::ObjectPoint ( InnerPixelPoint const &  in_point)
private

◆ ObjectPoint() [14/15]

HPS::ObjectPoint::ObjectPoint ( WindowPoint const &  in_point)
private

◆ ObjectPoint() [15/15]

HPS::ObjectPoint::ObjectPoint ( PixelPoint const &  in_point)
private

Member Function Documentation

◆ Equals()

bool HPS::Point_3D< float >::Equals ( Point_3D< float > const &  p,
int  in_tolerance = 32 
) const
inlineinherited

◆ operator!=()

bool HPS::Point_3D< float >::operator!= ( Point_3D< float > const &  p) const
inlineinherited

◆ operator*() [1/3]

Point_3D const HPS::Point_3D< float >::operator* ( float  s) const
inlineinherited

◆ operator*() [2/3]

HPS_INLINE Point_3D< float > const HPS::Point_3D< float >::operator* ( Vector_3D< float > const &  v) const
inherited

◆ operator*() [3/3]

HPS_INLINE Point_3D< float > const HPS::Point_3D< float >::operator* ( Vector_2D< float > const &  v) const
inherited

◆ operator*=() [1/3]

Point_3D& HPS::Point_3D< float >::operator*= ( float  s)
inlineinherited

◆ operator*=() [2/3]

HPS_INLINE Point_3D< float > & HPS::Point_3D< float >::operator*= ( Vector_3D< float > const &  v)
inherited

◆ operator*=() [3/3]

HPS_INLINE Point_3D< float > & HPS::Point_3D< float >::operator*= ( Vector_2D< float > const &  v)
inherited

◆ operator+() [1/2]

HPS_INLINE Point_3D< float > const HPS::Point_3D< float >::operator+ ( Vector_3D< float > const &  v) const
inherited

◆ operator+() [2/2]

HPS_INLINE Point_3D< float > const HPS::Point_3D< float >::operator+ ( Vector_2D< float > const &  v) const
inherited

◆ operator+=() [1/2]

HPS_INLINE Point_3D< float > & HPS::Point_3D< float >::operator+= ( Vector_3D< float > const &  v)
inherited

◆ operator+=() [2/2]

HPS_INLINE Point_3D< float > & HPS::Point_3D< float >::operator+= ( Vector_2D< float > const &  v)
inherited

◆ operator-() [1/4]

Point_3D const HPS::Point_3D< float >::operator- ( ) const
inlineinherited

◆ operator-() [2/4]

Vector_3D<float > const HPS::Point_3D< float >::operator- ( Point_3D< float > const &  p) const
inherited

◆ operator-() [3/4]

HPS_INLINE Point_3D< float > const HPS::Point_3D< float >::operator- ( Vector_3D< float > const &  v) const
inherited

◆ operator-() [4/4]

HPS_INLINE Point_3D< float > const HPS::Point_3D< float >::operator- ( Vector_2D< float > const &  v) const
inherited

◆ operator-=() [1/2]

HPS_INLINE Point_3D< float > & HPS::Point_3D< float >::operator-= ( Vector_3D< float > const &  v)
inherited

◆ operator-=() [2/2]

HPS_INLINE Point_3D< float > & HPS::Point_3D< float >::operator-= ( Vector_2D< float > const &  v)
inherited

◆ operator/() [1/3]

Point_3D const HPS::Point_3D< float >::operator/ ( float  s) const
inlineinherited

◆ operator/() [2/3]

HPS_INLINE Point_3D< float > const HPS::Point_3D< float >::operator/ ( Vector_3D< float > const &  v) const
inherited

◆ operator/() [3/3]

HPS_INLINE Point_3D< float > const HPS::Point_3D< float >::operator/ ( Vector_2D< float > const &  v) const
inherited

◆ operator/=() [1/3]

Point_3D& HPS::Point_3D< float >::operator/= ( float  s)
inlineinherited

◆ operator/=() [2/3]

HPS_INLINE Point_3D< float > & HPS::Point_3D< float >::operator/= ( Vector_3D< float > const &  v)
inherited

◆ operator/=() [3/3]

HPS_INLINE Point_3D< float > & HPS::Point_3D< float >::operator/= ( Vector_2D< float > const &  v)
inherited

◆ operator==()

bool HPS::Point_3D< float >::operator== ( Point_3D< float > const &  p) const
inlineinherited

◆ operator[]() [1/2]

float & HPS::Point_3D< float >::operator[] ( size_t  i)
inlineinherited

◆ operator[]() [2/2]

float const& HPS::Point_3D< float >::operator[] ( size_t  i) const
inlineinherited

◆ Origin()

static HPS_INLINE Point_3D HPS::Point_3D< float >::Origin ( )
inlinestaticinherited

◆ Zero()

static HPS_INLINE Point_3D HPS::Point_3D< float >::Zero ( )
inlinestaticinherited

Member Data Documentation

◆ x

float HPS::Point_3D< float >::x
inherited

◆ y

float HPS::Point_3D< float >::y
inherited

◆ z

float HPS::Point_3D< float >::z
inherited

The documentation for this class was generated from the following file: