Home · All Namespaces · All Classes · Functions · Coding Style · Plugins · File Structure

StelGeom::ConvexS Class Reference

A Convex is defined by several HalfSpaces defining a convex region. More...

#include <StelSphereGeometry.hpp>

Inherits std::vector< T >.

Inherited by StelGeom::ConvexPolygon.

List of all members.

Public Member Functions

 ConvexS (const ConvexS &c)
 ConvexS (int size=0)
 ConvexS (const Vec3d &e0, const Vec3d &e1, const Vec3d &e2)
 ConvexS (const Vec3d &e0, const Vec3d &e1, const Vec3d &e2, const Vec3d &e3)
bool areAllPointsOutsideOneSide (const Polygon &poly) const


Detailed Description

A Convex is defined by several HalfSpaces defining a convex region.

A Convex region is not necessarily a ConvexPolygon, it can for example be a single HalfSpace. Because in X11, Convex is #defined as an int in X11/X.h: (#define Convex 2) we needed to use another name (ConvexS).


Constructor & Destructor Documentation

StelGeom::ConvexS::ConvexS ( const ConvexS c  )  [inline]

copy constructor

StelGeom::ConvexS::ConvexS ( int  size = 0  )  [inline]

Default constructor.

StelGeom::ConvexS::ConvexS ( const Vec3d e0,
const Vec3d e1,
const Vec3d e2 
)

Special constructor for 3 halfspaces convex.

StelGeom::ConvexS::ConvexS ( const Vec3d e0,
const Vec3d e1,
const Vec3d e2,
const Vec3d e3 
)

Special constructor for 4 halfspaces convex.


Member Function Documentation

bool StelGeom::ConvexS::areAllPointsOutsideOneSide ( const Polygon poly  )  const [inline]

Tell whether the points of the passed Polygon are all outside of at least one HalfSpace.


Generated on Mon Feb 2 17:23:48 2009 for Stellarium by  doxygen 1.5.5