CARLsim  4.1.0
CARLsim: a GPU-accelerated SNN simulator
Point3D Struct Reference

a point in 3D space More...

#include <linear_algebra.h>

Public Member Functions

 Point3D (double _x, double _y, double _z)
 
 Point3D (int _x, int _y, int _z)
 
bool operator!= (const Point3D &p) const
 
Point3D operator* (const double a) const
 
Point3D operator* (const Point3D &p) const
 
Point3D operator+ (const double a) const
 
Point3D operator+ (const Point3D &p) const
 
Point3D operator- (const double a) const
 
Point3D operator- (const Point3D &p) const
 
Point3D operator/ (const double a) const
 
Point3D operator/ (const Point3D &p) const
 
bool operator< (const Point3D &p) const
 
bool operator<= (const Point3D &p) const
 
bool operator== (const Point3D &p) const
 
bool operator> (const Point3D &p) const
 
bool operator>= (const Point3D &p) const
 

Public Attributes

double x
 
double y
 
double z
 

Friends

std::ostream & operator<< (std::ostream &strm, const Point3D &p)
 

Detailed Description

A point in 3D space. Coordinates (x,y,z) are of double precision.

Parameters
[in]xx-coordinate
[in]yy-coordinate
[in]zz-coordinate

Definition at line 57 of file linear_algebra.h.

Constructor & Destructor Documentation

◆ Point3D() [1/2]

Point3D ( int  _x,
int  _y,
int  _z 
)
inline

Definition at line 59 of file linear_algebra.h.

◆ Point3D() [2/2]

Point3D ( double  _x,
double  _y,
double  _z 
)
inline

Definition at line 60 of file linear_algebra.h.

Member Function Documentation

◆ operator!=()

bool operator!= ( const Point3D p) const
inline

Definition at line 78 of file linear_algebra.h.

◆ operator*() [1/2]

Point3D operator* ( const double  a) const
inline

Definition at line 73 of file linear_algebra.h.

◆ operator*() [2/2]

Point3D operator* ( const Point3D p) const
inline

Definition at line 74 of file linear_algebra.h.

◆ operator+() [1/2]

Point3D operator+ ( const double  a) const
inline

Definition at line 69 of file linear_algebra.h.

◆ operator+() [2/2]

Point3D operator+ ( const Point3D p) const
inline

Definition at line 70 of file linear_algebra.h.

◆ operator-() [1/2]

Point3D operator- ( const double  a) const
inline

Definition at line 71 of file linear_algebra.h.

◆ operator-() [2/2]

Point3D operator- ( const Point3D p) const
inline

Definition at line 72 of file linear_algebra.h.

◆ operator/() [1/2]

Point3D operator/ ( const double  a) const
inline

Definition at line 75 of file linear_algebra.h.

◆ operator/() [2/2]

Point3D operator/ ( const Point3D p) const
inline

Definition at line 76 of file linear_algebra.h.

◆ operator<()

bool operator< ( const Point3D p) const
inline

Definition at line 79 of file linear_algebra.h.

◆ operator<=()

bool operator<= ( const Point3D p) const
inline

Definition at line 81 of file linear_algebra.h.

◆ operator==()

bool operator== ( const Point3D p) const
inline

Definition at line 77 of file linear_algebra.h.

◆ operator>()

bool operator> ( const Point3D p) const
inline

Definition at line 80 of file linear_algebra.h.

◆ operator>=()

bool operator>= ( const Point3D p) const
inline

Definition at line 82 of file linear_algebra.h.

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  strm,
const Point3D p 
)
friend

Definition at line 63 of file linear_algebra.h.

Member Data Documentation

◆ x

double x

Definition at line 85 of file linear_algebra.h.

◆ y

double y

Definition at line 85 of file linear_algebra.h.

◆ z

double z

Definition at line 85 of file linear_algebra.h.


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