ESyS-Particle  4.0.1
Public Member Functions | List of all members
Corner Class Reference

Class representing the corner of a polygon. More...

#include <Corner.h>

Public Member Functions

 Corner (const Vec3 &, int, int)
void addEdge (Edge *)
void addTriangle (Triangle *)
double sep (const Vec3 &) const
bool isValidContact (const Vec3 &) const
Vec3 getDirectionFromPoint (const Vec3 &) const
void move (const Vec3 &)
Vec3 getPos () const
void setPos (const Vec3 &p)
void applyForce (const Vec3 &f)
int getID () const
int getTag () const
double getDistMoved ()
void resetOldPos ()

Detailed Description

Class representing the corner of a polygon.

Author
Steffen Abe $Revision$ $Date$

Constructor & Destructor Documentation

Corner::Corner ( const Vec3 pos,
int  id,
int  tag 
)

constructor

Parameters
posthe position of the corner
idthe node id
tagthe node tag

Member Function Documentation

void Corner::addEdge ( Edge edge)

add Edge to corner

Parameters
edgea pointer to the edge
void Corner::addTriangle ( Triangle triangle)

add Triangle to Corner

Parameters
trianglea pointer to the triangle
Vec3 Corner::getDirectionFromPoint ( const Vec3 p) const

get the unit direction vector between a point and the corner

Parameters
pthe point

Referenced by ECornerInteraction::calcForces().

Here is the caller graph for this function:

bool Corner::isValidContact ( const Vec3 p) const

check if the contact between a particle at a point and the corner is valid or if there is a contact between the particle and any of the adjacent edges or triangles

Parameters
pthe center of the particle

Referenced by ECornerInteraction::calcForces().

Here is the caller graph for this function:

void Corner::move ( const Vec3 d)

move the corner

Parameters
dthe displacement
double Corner::sep ( const Vec3 p) const

get distance between corner and point

Parameters
pthe point

Referenced by ECornerInteraction::calcForces().

Here is the caller graph for this function:


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