GCS::ConstraintSnell Class Reference
#include <Constraints.h>
Public Member Functions | |
ConstraintSnell (Curve &ray1, Curve &ray2, Curve &boundary, Point p, double *n1, double *n2, bool flipn1, bool flipn2) | |
virtual double | error () |
virtual ConstraintType | getTypeId () |
virtual double | grad (double *) |
virtual void | rescale (double coef=1.) |
~ConstraintSnell () | |
Public Member Functions inherited from GCS::Constraint | |
Constraint () | |
int | findParamInPvec (double *param) |
int | getTag () |
bool | isDriving () const |
virtual double | maxStep (MAP_pD_D &dir, double lim=1.) |
VEC_pD | params () |
void | redirectParams (MAP_pD_pD redirectionmap) |
void | revertParams () |
void | setDriving (bool isdriving) |
void | setTag (int tagId) |
virtual | ~Constraint () |
Constructor & Destructor Documentation
◆ ConstraintSnell()
GCS::ConstraintSnell::ConstraintSnell | ( | Curve & | ray1, |
Curve & | ray2, | ||
Curve & | boundary, | ||
Point | p, | ||
double * | n1, | ||
double * | n2, | ||
bool | flipn1, | ||
bool | flipn2 | ||
) |
References GCS::Curve::Copy(), GCS::Curve::PushOwnParams(), and rescale().
◆ ~ConstraintSnell()
GCS::ConstraintSnell::~ConstraintSnell | ( | ) |
Member Function Documentation
◆ error()
|
virtual |
Reimplemented from GCS::Constraint.
Referenced by grad().
◆ getTypeId()
|
virtual |
Reimplemented from GCS::Constraint.
References GCS::Snell.
◆ grad()
|
virtual |
Reimplemented from GCS::Constraint.
References error(), and GCS::Constraint::findParamInPvec().
◆ rescale()
|
virtual |
Reimplemented from GCS::Constraint.
Referenced by ConstraintSnell().
The documentation for this class was generated from the following files:
- src/Mod/Sketcher/App/planegcs/Constraints.h
- src/Mod/Sketcher/App/planegcs/Constraints.cpp