trimTan()

Synopsis

Returns the trimming parameter on Part1, where Part2 is tangent to it. Part1 and Part2 must mixin either the LineMixin or ArcMixin designs . However, both parts cannot be Lines. Part1 and Part2 do not have to have to be touching at the tangency point to use this function. If two arcs are input, an imaginary line is drawn from the center of the first arc to a point where the tangents at the intersection of the line and arc1 and the intersection at the line and arc2 are equal.

Syntax

trimTan ( Part1 As Part, _
          Part2 As Part ) As Number 
Argument Type Description
Part1 Part Part to be trimmed. This part must mixin either the LineMixin or ArcMixin designs .
Part2 Part Part used to trim Part1. This part must mixin either the LineMixin or ArcMixin design . Note that if Part1 mixes in LineMixin, then Part2 should mixin ArcMixin (a line can be trimmed tangent to an arc, but not another line).

Example 1

Intent >trimTan(Arc_1, Line_1)
--> 71.565
This is the angle from the x axis of Arc_1 needed to locate the point on Arc_1 with a tangent vector equal to the direction of Line_1.

Example 2

Intent >trimTan(Arc_2, Line_1) 
--> 251.565 
This is the angle from the x axis of Arc_2 needed to locate the point on Arc_2 with a tangent vector equal to the direction of Line_1.

Example 3

Intent >trimTan(Arc_1, Arc_2)
--> 33.69

This is the angle from the x axis of Arc_1 for a tangent point on a centerline drawn between the centers of both Arc_1 and Arc_2.

Example 4

Intent >trimTan(Line_1, Arc_1) 
--> 0.632
This is the distance from the start of Line_1 in the direction of the line to the point where the line is tangent to Arc_1. If the tangency point had been before the start of the line, a negative distance would have been reported. This is the same as Example 1 except the length along Line_1 was returned instead of the angle on Arc_1.