Public Member Functions | Public Attributes | Friends | List of all members
CPoint3D Struct Reference

#include <Point3D.h>

Public Member Functions

 CPoint3D ()
 
 CPoint3D (double x, double y, double z)
 
double Len () const
 
void Normalize ()
 
CPoint3Doperator*= (double times)
 
CPoint3Doperator+= (const CPoint3D &pt)
 
CPoint3Doperator-= (const CPoint3D &pt)
 
CPoint3Doperator/= (double times)
 
bool operator< (const CPoint3D &other) const
 
bool operator== (const CPoint3D &other) const
 
CPoint3D Rotate () const
 

Public Attributes

double x
 
double y
 
double z
 

Friends

ostream & operator<< (ostream &out, const CPoint3D &pt)
 

Detailed Description

Definition at line 11 of file Point3D.h.

Constructor & Destructor Documentation

◆ CPoint3D() [1/2]

CPoint3D::CPoint3D ( )

Definition at line 3 of file Point3D.cpp.

◆ CPoint3D() [2/2]

CPoint3D::CPoint3D ( double  x,
double  y,
double  z 
)

Definition at line 7 of file Point3D.cpp.

Member Function Documentation

◆ Len()

double CPoint3D::Len ( ) const
inline

Definition at line 87 of file Point3D.h.

◆ Normalize()

void CPoint3D::Normalize ( )
inline

Definition at line 92 of file Point3D.h.

◆ operator*=()

CPoint3D & CPoint3D::operator*= ( double  times)
inline

Definition at line 71 of file Point3D.h.

◆ operator+=()

CPoint3D & CPoint3D::operator+= ( const CPoint3D pt)
inline

Definition at line 55 of file Point3D.h.

◆ operator-=()

CPoint3D & CPoint3D::operator-= ( const CPoint3D pt)
inline

Definition at line 63 of file Point3D.h.

◆ operator/=()

CPoint3D & CPoint3D::operator/= ( double  times)
inline

Definition at line 79 of file Point3D.h.

◆ operator<()

bool CPoint3D::operator< ( const CPoint3D other) const
inline

Definition at line 28 of file Point3D.h.

◆ operator==()

bool CPoint3D::operator== ( const CPoint3D other) const
inline

Definition at line 24 of file Point3D.h.

◆ Rotate()

CPoint3D CPoint3D::Rotate ( ) const
inline

Definition at line 50 of file Point3D.h.

Friends And Related Function Documentation

◆ operator<<

ostream& operator<< ( ostream &  out,
const CPoint3D pt 
)
friend

Definition at line 44 of file Point3D.h.

Member Data Documentation

◆ x

double CPoint3D::x

Definition at line 14 of file Point3D.h.

◆ y

double CPoint3D::y

Definition at line 14 of file Point3D.h.

◆ z

double CPoint3D::z

Definition at line 14 of file Point3D.h.


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


co_scan
Author(s):
autogenerated on Mon Feb 28 2022 23:00:58