DiGrande.it

Blind, Braille and Embossing Technologies

This site uses cookies to personalize content and ads, provide social media features and analyze links. By closing this banner or continuing to browse, you consent to their use.
Read the DiGrande.it Cookie Policy

ChordB- Draw a chord through three points

Draws a chord through three points using a Bezier curve.

- ChordB(X1,Y1,X2,Y2,X3,Y3[,R])

Parameters:

- (int) X1: horizontal coordinate of the starting point;

- (int) Y1: Vertical coordinate of the starting point;

- (int) X2: horizontal coordinate of the point of curvature;

- (int) Y2: vertical coordinate of the point of curvature;

- (int) X3: horizontal coordinate of the ending point;

- (int) Y3: Vertical coordinate of the ending point;

- (int) R: rotation expressed in degrees (optional).

Description:

Use ChordB to draw a closed figure consisting of an arc passing through three points and a straight line joining its ends. The arc is drawn using a square curve of Bezier defined by points X1 Y1 (start), X2 Y2 (curvature) and X3 Y3 (finish). The line joining the ends of the arc goes from the starting point to the end point.

The lines in the figure are drawn using the current pen and color (Pen, ColorPen, while the surface is filled using the current brush or color (Brush, ColorBrush).

The optional parameter R defines the rotation of the string around its hypothetical center or origin point defined with the GraphicOrigin instruction. The value is expressed in degrees. If omitted the rotation is 0 degrees.

Drawing with the mouse:

From the drawing context menu choose Chord. Move your pointer over a point on the graph and press the left button to set the starting point. Move your pointer to the end point - a line of sighting is drawn from the start point to the pointer - and press the left button. Move the pointer to choose the curvature of the arc - a curve is drawn that starts from the starting point, curves near the pointer, ends at the ending point and returns to the starting point with a straight line - and press the left button.

Once you have defined the coordinates of the chord, you use the mouse wheel to rotate it around its hypothetical center or around a point of origin defined with the GraphicOrigin instruction. If you use the mouse wheel with the Ctrl key, the chord will be enlarged or shrunk. To insert the ChordB instruction into the graph, confirm with the left mouse button.