Starshatter_Open
Open source Starshatter engine
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Point Struct Reference

#include <Geometry.h>

List of all members.

Public Member Functions

 Point ()
 Point (double ix, double iy, double iz)
 Point (const Point &p)
 Point (const Vec3 &v)
 operator Vec3 () const
 operator void * () const
int operator== (const Point &p) const
int operator!= (const Point &p) const
Point operator+ (const Point &p) const
Point operator- (const Point &p) const
Point operator- () const
Point operator* (double s) const
Point operator/ (double s) const
double operator* (const Point &p) const
Point operator* (const Matrix &m) const
Pointoperator= (const Point &p)
Pointoperator+= (const Point &p)
Pointoperator-= (const Point &p)
Pointoperator*= (double s)
Pointoperator/= (double s)
double length () const
double Normalize ()
void SwapYZ ()
Point OtherHand () const
void SetElement (int i, double v)
double dot (const Point &p) const
Point cross (const Point &p) const

Static Public Member Functions

static const char * TYPENAME ()

Public Attributes

double x
double y
double z

Detailed Description

Definition at line 189 of file Geometry.h.


Constructor & Destructor Documentation

Point::Point ( )
inline

Definition at line 193 of file Geometry.h.

Point::Point ( double  ix,
double  iy,
double  iz 
)
inline

Definition at line 194 of file Geometry.h.

Point::Point ( const Point p)
inline

Definition at line 195 of file Geometry.h.

Point::Point ( const Vec3 v)
inline

Definition at line 196 of file Geometry.h.


Member Function Documentation

Point Point::cross ( const Point p) const
inline

Definition at line 225 of file Geometry.h.

double Point::dot ( const Point p) const
inline

Definition at line 224 of file Geometry.h.

double Point::length ( ) const
inline

Definition at line 217 of file Geometry.h.

double Point::Normalize ( )

Definition at line 57 of file Geometry.cpp.

Point::operator Vec3 ( ) const
inline

Definition at line 198 of file Geometry.h.

Point::operator void * ( ) const
inline

Definition at line 200 of file Geometry.h.

int Point::operator!= ( const Point p) const
inline

Definition at line 202 of file Geometry.h.

Point Point::operator* ( double  s) const
inline

Definition at line 206 of file Geometry.h.

double Point::operator* ( const Point p) const
inline

Definition at line 208 of file Geometry.h.

Point Point::operator* ( const Matrix m) const

Definition at line 88 of file Geometry.cpp.

Point& Point::operator*= ( double  s)
inline

Definition at line 214 of file Geometry.h.

Point Point::operator+ ( const Point p) const
inline

Definition at line 203 of file Geometry.h.

Point& Point::operator+= ( const Point p)
inline

Definition at line 212 of file Geometry.h.

Point Point::operator- ( const Point p) const
inline

Definition at line 204 of file Geometry.h.

Point Point::operator- ( ) const
inline

Definition at line 205 of file Geometry.h.

Point& Point::operator-= ( const Point p)
inline

Definition at line 213 of file Geometry.h.

Point Point::operator/ ( double  s) const
inline

Definition at line 207 of file Geometry.h.

Point& Point::operator/= ( double  s)
inline

Definition at line 215 of file Geometry.h.

Point& Point::operator= ( const Point p)
inline

Definition at line 211 of file Geometry.h.

int Point::operator== ( const Point p) const
inline

Definition at line 201 of file Geometry.h.

Point Point::OtherHand ( ) const
inline

Definition at line 220 of file Geometry.h.

void Point::SetElement ( int  i,
double  v 
)

Definition at line 75 of file Geometry.cpp.

void Point::SwapYZ ( )
inline

Definition at line 219 of file Geometry.h.

static const char* Point::TYPENAME ( )
inlinestatic

Definition at line 191 of file Geometry.h.


Member Data Documentation

double Point::x

Definition at line 229 of file Geometry.h.

double Point::y

Definition at line 229 of file Geometry.h.

double Point::z

Definition at line 229 of file Geometry.h.


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