VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Arc Drawing and Mathematical Routines Including Line Intersection RoutinesUpdated

by Jolyon Bloomfield (9 Submissions)
Category: Math/Dates
Compatability: Visual Basic 3.0
Difficulty: Advanced
Date Added: Wed 3rd February 2021
Rating: (8 Votes)

This submission is split into 2 - A DLL, which holds all routines for handling arcs, and a program, which demonstrates how to use the DLL.
The DLL is basically a maths DLL, exposing a Line Intersection Routine, and an Arc Drawing routine. Each arc is defined by a series of three points - three points along the line that is the arc. The arc is drawn to any hDC by API, using specified colours, widths, penstyles, and drawmodes. The DLL also contains data type defining arcs, and routines to suit, to make using this DLL as easy as possible.
The program is a mimick of a CAD package, except it only uses arcs. It allows creation of arcs by clicking three points on a picturebox, then the arc, and the centrepoint of its circle, are drawn. From here, the points may be moved to update the arc, by dragging them and dropping them. During a dragdrop operation, the arc can be seen to be moving by using XOr drawmodes.
The update includes the following changes:
Program:
The Arcs may now be moved by dragging the arc where there is no control point.
An Arc must be selected before its control points can be moved.
Added Arc Selection Routine to Point Selection Routine.
About and Help boxes added.
Arcs can now be rotated around the centrepoint by rightclicking and dragging.
ZOrder for arcs also added, + buttons to manipulate.
DLL:
Updated routines and handling of data types inside DLL.
Numerous routines added to assist external calculations of angles, distances, radii, etc.
Overall, this has been a wonderful experience with mathematics for me. I strongly suggest that you download it, even if it is just to see what VB is really capable of, when the maths is applied. My 486 is fast enough to draw the arcs in real time, so I believe that any computer should do justice to the wonder of maths and graphics combined.
Hope you enjoy it!
Jolyon Bloomfield

Rate Arc Drawing and Mathematical Routines Including Line Intersection RoutinesUpdated

Download Arc Drawing and Mathematical Routines Including Line Intersection RoutinesUpdated

Download Arc Drawing and Mathematical Routines Including Line Intersection RoutinesUpdated (13 KB)

Arc Drawing and Mathematical Routines Including Line Intersection RoutinesUpdated Comments

No comments have been posted about Arc Drawing and Mathematical Routines Including Line Intersection RoutinesUpdated. Why not be the first to post a comment about Arc Drawing and Mathematical Routines Including Line Intersection RoutinesUpdated.

Post your comment

Subject:
Message:
0/1000 characters