basso::Point Class Reference

Geometric point. More...

#include <Point.h>

Inheritance diagram for basso::Point:

basso::Node List of all members.

Public Member Functions

 Point ()
 Point (Numeric x, Numeric y, Numeric z)
 Point (Numeric x, Numeric y)
 Point (Numeric x)
 Point (const nArray &v)
 ~Point ()
Numeric & x (int i)
Numeric x (int i) const
Numeric & x ()
Numeric x () const
Numeric & y ()
Numeric y () const
Numeric & z ()
Numeric z () const
Numeric Distance () const
Numeric Distance (const Point &p) const
Pointoperator= (const nArray &v)

Detailed Description

Geometric point.

This class defines a geometric point. It can also be used to define a node

Definition at line 30 of file Point.h.


Constructor & Destructor Documentation

basso::Point::Point (  )  [inline]

Default constructor

Definition at line 37 of file Point.h.

basso::Point::Point ( Numeric  x,
Numeric  y,
Numeric  z 
) [inline]

Defined from x, y, and z coordinates

Definition at line 40 of file Point.h.

basso::Point::Point ( Numeric  x,
Numeric  y 
) [inline]

Defined from x and y coordinates (z=0.0)

Definition at line 43 of file Point.h.

basso::Point::Point ( Numeric  x  )  [inline]

Defined from x coordinate (y=z=0.0)

Definition at line 46 of file Point.h.

basso::Point::Point ( const nArray &  v  )  [inline]

Constructs from an nArray

Definition at line 49 of file Point.h.

References x().


Member Function Documentation

Numeric& basso::Point::x ( int  i  )  [inline]

Returns the Ith coordinate of the point with zero offset

Definition at line 63 of file Point.h.

Referenced by basso::area_triangle(), basso::dist(), Distance(), basso::Tria6Basis::DNa(), basso::Tria3Basis::DNa(), basso::Tetra4Basis::DNa(), basso::Tetra10Basis::DNa(), basso::Quad8Basis::DNa(), basso::Quad4Basis::DNa(), basso::Line3Basis::DNa(), basso::Line2Basis::DNa(), basso::Hexa8Basis::DNa(), basso::GridRectTria3::GridRectTria3(), basso::Tria6Basis::Na(), basso::Tria3Basis::Na(), basso::Tetra4Basis::Na(), basso::Tetra10Basis::Na(), basso::Quad8Basis::Na(), basso::Quad4Basis::Na(), basso::Line3Basis::Na(), basso::Line2Basis::Na(), basso::Hexa8Basis::Na(), and basso::operator<<().

Numeric basso::Point::x ( int  i  )  const [inline]

Returns the Ith coordinate of the point with zero offset

Definition at line 65 of file Point.h.

Numeric& basso::Point::x (  )  [inline]

Returns the x coordinate

Definition at line 67 of file Point.h.

Referenced by Distance(), operator=(), and Point().

Numeric basso::Point::x (  )  const [inline]

Returns the x coordinate

Definition at line 69 of file Point.h.

Numeric& basso::Point::y (  )  [inline]

Returns the y coordinate

Definition at line 71 of file Point.h.

Referenced by basso::area_triangle(), basso::dist(), Distance(), basso::Tria6Basis::DNa(), basso::Tria3Basis::DNa(), basso::Tetra4Basis::DNa(), basso::Tetra10Basis::DNa(), basso::Quad8Basis::DNa(), basso::Quad4Basis::DNa(), basso::Hexa8Basis::DNa(), basso::GridRectTria3::GridRectTria3(), basso::Tria6Basis::Na(), basso::Tria3Basis::Na(), basso::Tetra4Basis::Na(), basso::Tetra10Basis::Na(), basso::Quad8Basis::Na(), basso::Quad4Basis::Na(), basso::Hexa8Basis::Na(), and basso::operator<<().

Numeric basso::Point::y (  )  const [inline]

Returns the y coordinate

Definition at line 73 of file Point.h.

Numeric& basso::Point::z (  )  [inline]

Returns the z coordinate

Definition at line 75 of file Point.h.

Referenced by basso::area_triangle(), basso::dist(), Distance(), basso::Tetra4Basis::DNa(), basso::Tetra10Basis::DNa(), basso::Tetra4Basis::Na(), basso::Tetra10Basis::Na(), and basso::operator<<().

Numeric basso::Point::z (  )  const [inline]

Returns the z coordinate

Definition at line 77 of file Point.h.

Numeric basso::Point::Distance (  )  const

Computes the distance to the origin

Definition at line 107 of file Point.h.

References x(), y(), and z().

Numeric basso::Point::Distance ( const Point p  )  const

Computes the distance to the point b

Definition at line 102 of file Point.h.

References x(), y(), and z().


The documentation for this class was generated from the following file:
Generated on Sat Jan 19 09:03:59 2008 for Basso by  doxygen 1.5.2