Geometrical calculator


It is possible to obtain dimensional information about objects parameters or, their relationship with other objects by using interactive functions that return a numeric value. The <Geometrical calculator> gives access to these interactive functions. All these functions can be used in the conversational definition of an element instead of a numeric value. They can also be used in the mathematical expressions.

The <Geometrical calculator> has two modes: the first one is for viewing parameters and correlations of the objects; the second one is for putting this result as the parameter into the definition of a new element.

To activate the <Geometrical calculator> in the parameter viewing mode press the f_clip0717 button on the tool panel. Parameters and correlations between objects can be viewed in the geometrical calculator window. When the <Clear> f_clip0786 button is pressed, the fields <Function> and <Result> will be erased.

 

f_clip0787

 

To view an element's parameter select the button for the required parameter in the geometrical calculator window (<X>, <Y>, <R>, <A>, <M> – respectively for coordinate X, coordinate Y, radius, angle or linear size) and left click on the object in the graphic view. For example, to determine the slope angle of a line, press the <A> button and in the graphic view left click the line. The objects string from the geometrical processor function will be displayed in the <Function> field, and a numeric value will be put into the <Result> field. Any of these strings can be copied using the exchange buffer into the definition sequence in the debug panel.

To view correlations between objects, press the button for the required parameter and point in the graphic view by the mouse at the required objects. For example, to check the distance from a point to a line, press the <M> button and using the mouse, left click the line and then the point (or vice versa) in the graphic view. The objects corresponding strings will be displayed in the <Function> and <Result> fields.

In order to use the result of the geometrical calculator as an object's parameter, when the new object is being created, and the parameter is required, select the required parameter name near the input are, then define the required parameter/correlation between objects. When the definition is complete, press <Result> f_clip0788 button. The obtained function will be used as a parameter of the element being created. This means that an additional parametric link has been imposed; further alteration of the basic elements will cause modification of this newly created object.

For example, when defining a circle, the radius value may need to be set equal to the distance between two earlier defined points. To do so, during the circle creation press an appropriate calculator function, (<Ì> – distance between points function) and successively left mouse click on the required points. Then press <Result> f_clip0788 button.

All other geometrical calculator function can be used in a similar manner (coordinates X and Y, linear size, angle value, radius). Values can be calculated for:

  • X coordinate of the point;
  • Y coordinate or the point;
  • distance between two points along the X axis;
  • distance between two points along Y axis;
  • aligned distance between two points;
  • distance between two circles (edges);
  • distance between a point and line;
  • distance between a line and circle;
  • line angle to X axis in degrees;
  • angle of a perpendicular line;
  • circle radius.

The following standard mathematical operations and functions can be used in the geometrical calculator:

  • add;
  • subtract;
  • multiply;
  • divide
  • raising to a power (^).

It is necessary to remember that two arithmetical signs cannot be used together. As well as these operators, the following standard functions are also allowed in mathematical expressions:

  • log(x) – decimal logarithm x;
  • ctg(x) – cotangent x;
  • asin(x) – arcsine x in the degrees;
  • acos(x) – arccosine x in the degrees;
  • sin(x) – angle sine x in the degrees;
  • cos(x) – angle cosine x in the degrees;
  • atg(x) – arctangent x in the degrees;
  • tg(x) – angle tangent x in the degrees;
  • sqrt(x) – square root from x;
  • abs(x) – absolute value x;
  • sgn(x) – sign x;
  • ln(x) – natural logarithm x,

Where <x> the function argument, which represents a number, a variable, a mathematical function or mathematical expression;

 

 

 

See also:

Environment of 2D geometrical constructions