Xmipp  v3.23.11-Nereus
Public Member Functions | Public Attributes | Friends | List of all members

#include <point3D.h>

Inheritance diagram for Point3D< T >:
Inheritance graph
[legend]
Collaboration diagram for Point3D< T >:
Collaboration graph
[legend]

Public Member Functions

CUDA_HD Point3D (T x=0, T y=0, T z=0)
 
 Point3D (const std::initializer_list< T > &l)
 
CUDA_H Point3Doperator/= (const T &rhs) const
 

Public Attributes

x
 
y
 
z
 
float x
 
float y
 
float z
 

Friends

CUDA_H friend Point3D operator/ (const Point3D &lhs, T rhs)
 

Detailed Description

template<typename T>
struct Point3D< T >

Class represents a point in 3D

Struct represents a point in 3D

Definition at line 37 of file point3D.h.

Constructor & Destructor Documentation

◆ Point3D() [1/2]

template<typename T>
CUDA_HD Point3D< T >::Point3D ( x = 0,
y = 0,
z = 0 
)
inline

Definition at line 40 of file point3D.h.

40  :
41  x(x), y(y), z(z) {
42  }
T z
Definition: point3D.h:56
T x
Definition: point3D.h:54
T y
Definition: point3D.h:55

◆ Point3D() [2/2]

template<typename T>
Point3D< T >::Point3D ( const std::initializer_list< T > &  l)
inline

Definition at line 44 of file point3D.h.

44  {
45  if (3 == l.size())
46  {
47  auto it = l.begin();
48  x = *it++;
49  y = *it++;
50  z = *it++;
51  }
52  }
T z
Definition: point3D.h:56
T x
Definition: point3D.h:54
T y
Definition: point3D.h:55

Member Function Documentation

◆ operator/=()

template<typename T>
CUDA_H Point3D& Point3D< T >::operator/= ( const T &  rhs) const
inline

Definition at line 59 of file point3D.h.

59  {
60  return Point3D(x / rhs, y / rhs, z / rhs);
61  }
T z
Definition: point3D.h:56
T x
Definition: point3D.h:54
CUDA_HD Point3D(T x=0, T y=0, T z=0)
Definition: point3D.h:40
T y
Definition: point3D.h:55

Friends And Related Function Documentation

◆ operator/

template<typename T>
CUDA_H friend Point3D operator/ ( const Point3D< T > &  lhs,
rhs 
)
friend

Definition at line 64 of file point3D.h.

64  {
65  return lhs /= rhs;
66  }

Member Data Documentation

◆ x [1/2]

template<typename T>
T Point3D< T >::x

Definition at line 54 of file point3D.h.

◆ x [2/2]

template<typename T>
float Point3D< T >::x

Definition at line 84 of file reconstruct_fourier_accel.h.

◆ y [1/2]

template<typename T>
T Point3D< T >::y

Definition at line 55 of file point3D.h.

◆ y [2/2]

template<typename T>
float Point3D< T >::y

Definition at line 84 of file reconstruct_fourier_accel.h.

◆ z [1/2]

template<typename T>
T Point3D< T >::z

Definition at line 56 of file point3D.h.

◆ z [2/2]

template<typename T>
float Point3D< T >::z

Definition at line 84 of file reconstruct_fourier_accel.h.


The documentation for this struct was generated from the following files: