Gorgon Game Engine
basic_Point3D< T_ > Class Template Reference

Public Types

typedef T_ BaseType
 Base type of the point elements. More...
 

Public Member Functions

 basic_Point3D ()
 Default constructor, does not zero initialize point. More...
 
 basic_Point3D (const basic_Point< T_ > &point, const T_ &Z=T_())
 Filling constructor. More...
 
 basic_Point3D (const T_ &X, const T_ &Y, const T_ &Z)
 Filling constructor. More...
 
basic_Point3D CrossProduct (const basic_Point3D &other) const
 
Float Distance () const
 
Float ManhattanDistance () const
 
basic_Point3D Normalize () const
 
Float operator* (const basic_Point3D &other) const
 
basic_Point3D operator* (Float val) const
 
basic_Point3D operator+ (const basic_Point3D &other) const
 
basic_Point3D operator- (const basic_Point3D &other) const
 
basic_Point3D operator/ (Float val) const
 

Public Attributes

union {
   struct {
      T_   X
 
      T_   Y
 
      T_   Z
 
   } 
 
   T_   Vector [3]
 
}; 
 

Member Typedef Documentation

◆ BaseType

typedef T_ BaseType

Base type of the point elements.

Constructor & Destructor Documentation

◆ basic_Point3D() [1/3]

Default constructor, does not zero initialize point.

◆ basic_Point3D() [2/3]

basic_Point3D ( const T_ &  X,
const T_ &  Y,
const T_ &  Z 
)

Filling constructor.

◆ basic_Point3D() [3/3]

basic_Point3D ( const basic_Point< T_ > &  point,
const T_ &  Z = T_() 
)

Filling constructor.

Member Function Documentation

◆ CrossProduct()

basic_Point3D CrossProduct ( const basic_Point3D< T_ > &  other) const

◆ Distance()

◆ ManhattanDistance()

Float ManhattanDistance ( ) const

◆ Normalize()

◆ operator*() [1/2]

Float operator* ( const basic_Point3D< T_ > &  other) const

◆ operator*() [2/2]

◆ operator+()

basic_Point3D operator+ ( const basic_Point3D< T_ > &  other) const

◆ operator-()

basic_Point3D operator- ( const basic_Point3D< T_ > &  other) const

◆ operator/()

Member Data Documentation

◆ @8

union { ... }

◆ Vector

T_ Vector[3]

◆ X

T_ X

◆ Y

T_ Y

◆ Z

T_ Z

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