Path: typos
This commit is contained in:
@@ -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.
|
||||
'''
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user