GenerateOffCurveTangToCurve
From scripting
global proc string GenerateOffCurveTangToCurve(vector $Pt1, vector $Pt1Close, vector $Pt2, float $OffDist, string $NameStr) { vector $MidVec = OffMidVector($Pt1, $Pt2, $OffDist); vector $M2 = OffMidVector($MidVec, $Pt2, 0.01); string $Curv = `curve -d 3 -p ($Pt1.x) ($Pt1.y) ($Pt1.z) -p ($Pt1Close.x) ($Pt1Close.y) ($Pt1Close.z) -p ($MidVec.x) ($MidVec.y) ($MidVec.z) -p ($M2.x) ($M2.y) ($M2.z) -p ($Pt2.x) ($Pt2.y) ($Pt2.z) -k 0 -k 0 -k 0 -k 1 -k 2 -k 2 -k 2 -n ($NameStr)`; return $Curv; }
More information on vectors and vector mathematics, read pages 14-16, 20-21 in YSYT.