Objects and Functions¶
Scalar:Distance¶
Scalar:Distance(<point>, <point>)
Distance between 2 Points:
d = Scalar:Distance(P1, P2)
Scalar:Distance(<point>, <line>)
Abstand zwischen einem Punkt und einer Geraden:
d = Scalar:Distance(P1, L1)
Scalar:Distance(<point>; <circle>)
Abstand zwischen einem Punkt und einem Kreis:
d = Scalar:Distance(P1, C1)
Scalar:Angle¶
Scalar:Angle(<line>, <line>)
Angle (in degrees) between 2 lines:
alfa = Scalar:Angle(L1, L2)
Point: Direct Creation¶
Point:Create(<number>, <number>)
Definition using x/y coordinates:
P = Point:Create(x, y)
Point: Intersections¶
Intersection of lines¶
Point:Intersection(<line>, <line>)
Definition by intersection of 2 lines:
P = Point:Intersection(L1, L2)
Intersection of line and circle¶
Point:Intersection(<line>, <circle>, <number>)
Definition by intersection of a line and a circle:
P = Point:Intersection(L1, C1, n)
Intersection of 2 circles¶
Point:Intersection(<circle>, <circle>, <number>)
Definition by intersection of 2 circles:
P = Point:Intersection(C1, C2, n)
Reference line is the connection between the center points of the 2 circles.
Point: Perpendiculars¶
Perpendicular of a point to a line¶
Point:Perpendicular(<point>, <line>)
Definition by the intersection of perpendicular line from a point to the target line:
Px = Point:Perpendicular(P1, L1)
Perpendicular of a point to a circle¶
Point:Perpendicular(<point>, <circle>)
Definition by the intersection of perpendicular line from a point to the target circle:
Px = Point:Perpendicular(P1, C1)
Point: Vanishing¶
Point:Align(<point>, <point>, <number>)
Definition by the vanishing point on the line between 2 points:
P = Point:Align(P1, P2, rdist)
Point: Reflections¶
Point:Mirror(<line> [,<line>]*, <point> [,<point]*)
Definition by the reflection point(s) on the line(s):
Pa, Pb, Pc, Pd = Point:Mirror(L1, P1, P2, L2)
Point:: Tangents¶
Tangent from a point to a circle¶
Point:Tangent(<point>, <circle>, <number>)
Definition of a tangent point from a point to a circle:
P = Point:Tangent(P1, C1, n)
Reference direction is the line from P1 to the center of C1
Tangent between 2 circles¶
Point:Tangent(<circle>, <circle>, <number>)
Definition of a tangent point of 2 circles:
P = Point:Tangent(C1, C1, n)
Reference direction is the line from the center of C1 to the center of C2
Point: Fillets (Rounding of corners)¶
Rounding between 2 lines¶
Point:Rounding(<line>, <line>, <radius>, <number>)
Definition of a fillet between 2 lines:
P1, P2, P3 = Point:Rounding(L1, L2, r, n)
Rounding between line and circle¶
Point:Rounding(<line>, <circle>, <radius>, <number>)
Definition of a fillet between a line and a circle:
P1, P2, P3 = Point:Rounding(L1, C1, r, n)
Rounding between 2 circles¶
Point:Rounding(<circle>, <circle>, <radius>, <number>)
Definition of a fillet between 2 circles:
P1, P2, P3 = Point:Rounding(C1, C2, r, n)
Line: Create¶
2 Points¶
Line:Create(<point>, <point>)
Definition by 2 points:
L = Line:Create(P1, P2)
Point and Angle¶
Line:Create(<point>, <angle>)
Definition by one point and an angle:
L = Line:Create(P1, alfa)
Point and Perpendicular¶
Line:Perpendicular(<point>, <line>)
Definition by a point and a perpendicular line:
L = Line:Perpendicular(P1, L1)
Perpendicular of line between 2 Points¶
Line:Perpendicular(<point>, <point>, <rdist>)
Definition by a point and a perpendicular line:
L = Line:Perpendicular(P1, P2, rdist)
Parallel line of point¶
Line:Parallel(<line>, <point>)
Definition by a parallel line and a point:
L = Line:Parallel(L1, P1)
Parallel line with distance¶
Line:Parallel(<line>, <distance>)
Definition by a parallel line and a distance:
L = Line:Parallel(L1, dist)
Circle¶
Direct construction¶
Circle:Create(<point>, <radius>)
Definition by center point and radius:
C = Circle:Create(P1, rad)
Center and Radius¶
Circle:Create(<point>, <radius>)
Definition by center point and radius:
C = Circle:Create(P1, rad)
3 Points¶
Circle:Create(<point>, <point>, <point>)
Definition by 3 points:
C = Circle:Create(P1, P2, P3)