Home
Search
 
What's New
Index
Books
Links
Q & A
Newsletter
Banners
 
Feedback
Tip Jar
 
C# Helper...
 
XML RSS Feed
Follow VBHelper on Twitter Follow VBHelper on Twitter
 
 
 
MSDN Visual Basic Community
 
 
 
 
 
TitleUse a PointF class to find the tangent lines between a point and a circle in Visual Basic 6
DescriptionThis example shows how to use a PointF class to find the tangent lines between a point and a circle in Visual Basic 6.
Keywordstangents, find tangents, find tangent lines, tangent lines, Visual Basic 6, VB 6, graphics, algorithms, PointF
CategoriesAlgorithms, Graphics
 
While trying to use the example Find the tangent lines between a point and a circle in Visual Basic 6 to build a new example that finds the tangnents between two circles, I found the code pretty hard to read. It was difficult passing points back and forth as a pair of values.

This example uses a PointF class to represent points. This class simply has two public fields:

 
Public X As Single
Public Y As Single
 
See the previous example Find the tangent lines between a point and a circle in Visual Basic 6 for an explanation of how this example works.

Also see the example Find the tangent lines between two circles in Visual Basic 6.

 
 
Copyright © 1997-2010 Rocky Mountain Computer Consulting, Inc.   All rights reserved.
  Updated