Product : Engine, Version : 4.1.6.1028, ArticleID : 41023325

HowTo : Take an intesection point in C#

Article41023325
TypeHowTo
ProductEngine
Version4.1.6.1028
Date Added12/8/2003
Submitted byTakis Panagiotopoulos
Keywords

Subject

Take an intesection point in C#

Summary

How to take an intesection point in C#

Solution

VDProLib.vdLine myline1;

VDProLib.vdLine myline2;

object a;

myline1=vdpro.ActiveDocument.Entities.AddLine(new object[] {0,4},new object[] {4,0}); //x=-y+4

myline2=vdpro.ActiveDocument.Entities.AddLine(new object[] {0,0},new object[] {10,10}); //x=y

a=myline1.IntersectWith(myline2,VDProLib.VdConstInters.VdIntExtendBoth); // the intersection point is (2,2)