VirtualFluids 0.2.0
Parallel CFD LBM Solver
Loading...
Searching...
No Matches
vf::gpu::Vertex Struct Reference

#include <Vertex.h>

Public Member Functions

 Vertex (real x, real y, real z)
 
 Vertex ()
 
real getEuclideanDistanceTo (const Vertex &w) const
 
Vertex operator- (const Vertex &v) const
 
Vertex operator+ (const Vertex &v) const
 
Vertex operator* (const real &value) const
 
Vertex operator/ (const real &value) const
 
real operator* (const Vertex &w) const
 
struct Vertex crossProduct (const Vertex &w) const
 
real length () const
 
void normalize ()
 
real getMagnitude () const
 
int isEqual (const Vertex &w) const
 
real getInnerAngle (const Vertex &w) const
 
bool operator== (const Vertex &v) const
 
bool isXbetween (real min, real max) const
 
bool isYbetween (real min, real max) const
 
bool isZbetween (real min, real max) const
 
void print () const
 
void print (std::ostream &ost) const
 
void printFormatted (std::ostream &ost) const
 

Static Public Member Functions

static void setMinMax (real &minX, real &maxX, real &minY, real &maxY, real &minZ, real &maxZ, const Vertex &v1, const Vertex &v2, const Vertex &v3)
 
static void calculateMinMax (const real &value1, const real &value2, const real &value3, real &min, real &max)
 

Public Attributes

real x
 
real y
 
real z
 

Detailed Description

Definition at line 44 of file Vertex.h.

Constructor & Destructor Documentation

◆ Vertex() [1/2]

vf::gpu::Vertex::Vertex ( real  x,
real  y,
real  z 
)

Definition at line 40 of file Vertex.cpp.

◆ Vertex() [2/2]

vf::gpu::Vertex::Vertex ( )

Definition at line 41 of file Vertex.cpp.

Member Function Documentation

◆ calculateMinMax()

void vf::gpu::Vertex::calculateMinMax ( const real value1,
const real value2,
const real value3,
real min,
real max 
)
static

Definition at line 183 of file Vertex.cpp.

◆ crossProduct()

struct Vertex vf::gpu::Vertex::crossProduct ( const Vertex w) const

Definition at line 73 of file Vertex.cpp.

◆ getEuclideanDistanceTo()

real vf::gpu::Vertex::getEuclideanDistanceTo ( const Vertex w) const

Definition at line 43 of file Vertex.cpp.

◆ getInnerAngle()

real vf::gpu::Vertex::getInnerAngle ( const Vertex w) const

Definition at line 110 of file Vertex.cpp.

◆ getMagnitude()

real vf::gpu::Vertex::getMagnitude ( ) const

Definition at line 99 of file Vertex.cpp.

◆ isEqual()

int vf::gpu::Vertex::isEqual ( const Vertex w) const

Definition at line 105 of file Vertex.cpp.

◆ isXbetween()

bool vf::gpu::Vertex::isXbetween ( real  min,
real  max 
) const

Definition at line 149 of file Vertex.cpp.

◆ isYbetween()

bool vf::gpu::Vertex::isYbetween ( real  min,
real  max 
) const

Definition at line 154 of file Vertex.cpp.

◆ isZbetween()

bool vf::gpu::Vertex::isZbetween ( real  min,
real  max 
) const

Definition at line 159 of file Vertex.cpp.

◆ length()

real vf::gpu::Vertex::length ( ) const

Definition at line 81 of file Vertex.cpp.

◆ normalize()

void vf::gpu::Vertex::normalize ( )

Definition at line 86 of file Vertex.cpp.

◆ operator*() [1/2]

Vertex vf::gpu::Vertex::operator* ( const real value) const

Definition at line 58 of file Vertex.cpp.

◆ operator*() [2/2]

real vf::gpu::Vertex::operator* ( const Vertex w) const

Definition at line 68 of file Vertex.cpp.

◆ operator+()

Vertex vf::gpu::Vertex::operator+ ( const Vertex v) const

Definition at line 53 of file Vertex.cpp.

◆ operator-()

Vertex vf::gpu::Vertex::operator- ( const Vertex v) const

Definition at line 48 of file Vertex.cpp.

◆ operator/()

Vertex vf::gpu::Vertex::operator/ ( const real value) const

Definition at line 63 of file Vertex.cpp.

◆ operator==()

bool vf::gpu::Vertex::operator== ( const Vertex v) const

Definition at line 143 of file Vertex.cpp.

◆ print() [1/2]

void vf::gpu::Vertex::print ( ) const

Definition at line 124 of file Vertex.cpp.

◆ print() [2/2]

void vf::gpu::Vertex::print ( std::ostream &  ost) const

Definition at line 129 of file Vertex.cpp.

◆ printFormatted()

void vf::gpu::Vertex::printFormatted ( std::ostream &  ost) const

Definition at line 136 of file Vertex.cpp.

◆ setMinMax()

void vf::gpu::Vertex::setMinMax ( real minX,
real maxX,
real minY,
real maxY,
real minZ,
real maxZ,
const Vertex v1,
const Vertex v2,
const Vertex v3 
)
static

Definition at line 164 of file Vertex.cpp.

Member Data Documentation

◆ x

real vf::gpu::Vertex::x

Definition at line 47 of file Vertex.h.

◆ y

real vf::gpu::Vertex::y

Definition at line 47 of file Vertex.h.

◆ z

real vf::gpu::Vertex::z

Definition at line 47 of file Vertex.h.


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