GOAT (Geometrical optics application tool) 0.1
Loading...
Searching...
No Matches
GOAT::raytracing::Plane Class Reference

#include <plane.h>

Public Member Functions

void binRead (std::ifstream &is)
 reads plane from binary file stream is
void binWrite (std::ofstream &os)
 writes plane into the binary file stream os
double distance (maths::Vector< double > R)
 distance between the point R and the plane
void intersectSphere (maths::Vector< double > O, double r)
 find intersection point with a sphere
void norm ()
 normal of the plane
void Normalenform ()
 Plane ()
 Plane (const maths::Vector< double > &P, const maths::Vector< double > &e1, const maths::Vector< double > &e2)
 Constructor.
void rotate (double dr, double dtheta, double dphi)
void toString (char *S)
 ~Plane ()

Public Attributes

maths::Vector< double > e1
maths::Vector< double > e2
maths::Vector< double > n
maths::Vector< double > P

Friends

std::ostream & operator<< (std::ostream &os, Plane E)

Detailed Description

Definition at line 32 of file plane.h.

Constructor & Destructor Documentation

◆ Plane() [1/2]

GOAT::raytracing::Plane::Plane ( )

◆ Plane() [2/2]

GOAT::raytracing::Plane::Plane ( const maths::Vector< double > & P,
const maths::Vector< double > & e1,
const maths::Vector< double > & e2 )

Constructor.

Parameters
PPosition (center) of the plane
e1first direction vector
e2second direction vector

◆ ~Plane()

GOAT::raytracing::Plane::~Plane ( )

Member Function Documentation

◆ binRead()

void GOAT::raytracing::Plane::binRead ( std::ifstream & is)

reads plane from binary file stream is

◆ binWrite()

void GOAT::raytracing::Plane::binWrite ( std::ofstream & os)

writes plane into the binary file stream os

◆ distance()

double GOAT::raytracing::Plane::distance ( maths::Vector< double > R)

distance between the point R and the plane

◆ intersectSphere()

void GOAT::raytracing::Plane::intersectSphere ( maths::Vector< double > O,
double r )

find intersection point with a sphere

Parameters
Ocenter of the sphere
rradius of the sphere

◆ norm()

void GOAT::raytracing::Plane::norm ( )

normal of the plane

◆ Normalenform()

void GOAT::raytracing::Plane::Normalenform ( )

◆ rotate()

void GOAT::raytracing::Plane::rotate ( double dr,
double dtheta,
double dphi )

◆ toString()

void GOAT::raytracing::Plane::toString ( char * S)

◆ operator<<

std::ostream & operator<< ( std::ostream & os,
Plane E )
friend

Definition at line 56 of file plane.h.

Member Data Documentation

◆ e1

maths::Vector<double> GOAT::raytracing::Plane::e1

Definition at line 65 of file plane.h.

◆ e2

maths::Vector<double> GOAT::raytracing::Plane::e2

Definition at line 65 of file plane.h.

◆ n

maths::Vector<double> GOAT::raytracing::Plane::n

Definition at line 65 of file plane.h.

◆ P

maths::Vector<double> GOAT::raytracing::Plane::P

Definition at line 65 of file plane.h.


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