Path: typos

This commit is contained in:
luz.paz
2018-01-04 11:04:54 -05:00
committed by Yorik van Havre
parent 47cbc42de0
commit 0c54e0dc3a
3 changed files with 4 additions and 4 deletions

View File

@@ -978,7 +978,7 @@ def SetupOperation(name,
Creates an instance of CommandPathOp with the given parameters and registers the command with FreeCAD.
When activated it creates a model with proxy (by invoking objFactory), assigns a view provider to it
(see ViewProvider in this module) and starts the editor specifically for this operation (driven by opPageClass).
This is an internal function that is automatically called by the intialisation code for each operation.
This is an internal function that is automatically called by the initialisation code for each operation.
It is not expected to be called manually.
'''

View File

@@ -354,13 +354,13 @@ namespace geoff_geometry {
Point3d Near(const Line& l, const Point3d& p, double& t){
// returns the near point from a line on the extended line and the parameter of the near point (0-length) in range
t = (Vector3d(l.p0, p) * l.v) / l.length; // t parametised 0 - line length
t = (Vector3d(l.p0, p) * l.v) / l.length; // t parametrised 0 - line length
return l.v * (t / l.length) + l.p0;
}
Point3d Line::Near(const Point3d& p, double& t)const{
// returns the near point from a line on the extended line and the parameter of the near point (0-length) in range
t = (Vector3d(this->p0, p) * this->v) / this->length; // t parametised 0 - line length
t = (Vector3d(this->p0, p) * this->v) / this->length; // t parametrised 0 - line length
return this->v * (t / this->length) + this->p0;
}

View File

@@ -321,7 +321,7 @@ namespace geoff_geometry {
// returns the near point to span from p
if(this->dir == LINEAR) {
double t;
t = (Vector2d(this->p0, p) * this->vs); // t parametised 0 - line length
t = (Vector2d(this->p0, p) * this->vs); // t parametrised 0 - line length
return this->vs * t + this->p0;
} else {
double r = p.Dist(this->pc);