Public Function MakeLine( _ ByVal vX1 As Variant _ , ByVal vY1 As Variant _ , ByVal vX2 As Variant _ , ByVal vY2 As Variant _ ) As Variant
Assuming Dim varLine1 As Variant varLine1 = MakeLine(2, 3, 4, 5) for example VarType(varPoint1) = vbVariant + vbArray LBound(varPoint1) = 0 UBound(varPoint1) = 1 LBound(varPoint(0)) = 0 UBound(varPoint(0)) = 1 LBound(varPoint(1)) = 0 UBound(varPoint(1)) = 1 varPoint(0)(0) = 2 varPoint(0)(1) = 3 varPoint(1)(0) = 4 varPoint(1)(1) = 5 and LinesIntersect(varLine1, varLine1) = TrueSee also:
MakePoint Function ArgumentsToVariant Function LinesIntersect FunctionvX1: Number representing the X-coordinate of the first point on the line segment.
Copyright 1996-1999 Entisoft
Entisoft Tools is a trademark of Entisoft.