Main Page | Namespace List | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | Examples

dsrpdb::Point Class Reference

#include <Point.h>

List of all members.


Detailed Description

A class representing a geometric point.

Feel free to replace this with anything you want to use your own point. I just construct and call x(), y(), z().

Examples:

pdb_align_points.cc.

Definition at line 47 of file Point.h.

Public Member Functions

 Point ()
 Point (double x, double y, double z)
double x () const
double y () const
double z () const
double operator[] (unsigned int i) const
Point operator- (const Point &o) const
Point operator+ (const Point &o) const
Point operator/ (double d) const
double operator * (const Point &o) const

Protected Attributes

double x_
double y_
double z_


Constructor & Destructor Documentation

dsrpdb::Point::Point  )  [inline]
 

Default.

Definition at line 50 of file Point.h.

Referenced by operator+(), operator-(), and operator/().

dsrpdb::Point::Point double  x,
double  y,
double  z
[inline]
 

Construct a point.

Definition at line 52 of file Point.h.


Member Function Documentation

double dsrpdb::Point::operator * const Point o  )  const [inline]
 

Dot product.

Definition at line 90 of file Point.h.

References x_, y_, and z_.

Point dsrpdb::Point::operator+ const Point o  )  const [inline]
 

Sum of two points.

Definition at line 80 of file Point.h.

References Point(), x_, y_, and z_.

Point dsrpdb::Point::operator- const Point o  )  const [inline]
 

difference between two points

Definition at line 75 of file Point.h.

References Point(), x_, y_, and z_.

Point dsrpdb::Point::operator/ double  d  )  const [inline]
 

Divide by a scalar.

Definition at line 85 of file Point.h.

References Point(), x_, y_, and z_.

double dsrpdb::Point::operator[] unsigned int  i  )  const [inline]
 

Get one of the coordinates by index.

Definition at line 63 of file Point.h.

References x_, y_, and z_.

double dsrpdb::Point::x  )  const [inline]
 

x

Definition at line 55 of file Point.h.

References x_.

Referenced by dsrpdb::Transform::operator()(), dsrpdb::Squared_distance::operator()(), and dsrpdb::operator<<().

double dsrpdb::Point::y  )  const [inline]
 

y

Definition at line 57 of file Point.h.

References y_.

Referenced by dsrpdb::Transform::operator()(), dsrpdb::Squared_distance::operator()(), and dsrpdb::operator<<().

double dsrpdb::Point::z  )  const [inline]
 

y

Definition at line 60 of file Point.h.

References z_.

Referenced by dsrpdb::Transform::operator()(), dsrpdb::Squared_distance::operator()(), and dsrpdb::operator<<().


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