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

a point in 3D space More...

#include <linear_algebra.h>

Public Member Functions

 Point3D (int _x, int _y, int _z)
 
 Point3D (double _x, double _y, double _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 58 of file linear_algebra.h.

Constructor & Destructor Documentation

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

Definition at line 60 of file linear_algebra.h.

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

Definition at line 61 of file linear_algebra.h.

Member Function Documentation

bool operator!= ( const Point3D p) const
inline

Definition at line 79 of file linear_algebra.h.

Point3D operator* ( const double  a) const
inline

Definition at line 74 of file linear_algebra.h.

Point3D operator* ( const Point3D p) const
inline

Definition at line 75 of file linear_algebra.h.

Point3D operator+ ( const double  a) const
inline

Definition at line 70 of file linear_algebra.h.

Point3D operator+ ( const Point3D p) const
inline

Definition at line 71 of file linear_algebra.h.

Point3D operator- ( const double  a) const
inline

Definition at line 72 of file linear_algebra.h.

Point3D operator- ( const Point3D p) const
inline

Definition at line 73 of file linear_algebra.h.

Point3D operator/ ( const double  a) const
inline

Definition at line 76 of file linear_algebra.h.

Point3D operator/ ( const Point3D p) const
inline

Definition at line 77 of file linear_algebra.h.

bool operator< ( const Point3D p) const
inline

Definition at line 80 of file linear_algebra.h.

bool operator<= ( const Point3D p) const
inline

Definition at line 82 of file linear_algebra.h.

bool operator== ( const Point3D p) const
inline

Definition at line 78 of file linear_algebra.h.

bool operator> ( const Point3D p) const
inline

Definition at line 81 of file linear_algebra.h.

bool operator>= ( const Point3D p) const
inline

Definition at line 83 of file linear_algebra.h.

Friends And Related Function Documentation

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

Definition at line 64 of file linear_algebra.h.

Member Data Documentation

double x

Definition at line 86 of file linear_algebra.h.

double y

Definition at line 86 of file linear_algebra.h.

double z

Definition at line 86 of file linear_algebra.h.


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