PLof3dist

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - PL/Point Lists
Introduced first in SolidGeometry 3.8, Creation date: 2017-05-24, Last change: 2025-09-14

creates a 3P Tracker geometry using the given distances



See Also: tangent2circ , cross2circ , crosscircline , PLchordof2PR , crossz , PLcross2Lines

Example Illustration

 missing image of PLof3dist(d1,d2,d3,srt)

Syntax

[PL,n,d3]=PLof3dist(d1,d2,[d3,srt])

Input Parameter

d1: distance in x
d2: radius at second point
d3: radius at third/first point point;
srt: sort by length; default is false

Output Parameter

PL: Point list
n: area of triangle
d3: d3

Examples


PLof3dist(35,30,45)
PLof3dist(35,30,45,true)




Copyright 2017-2025 Tim C. Lueth. All rights reserved. The code is the property of Tim C. Lueth and may not be redistributed or modified without explicit written permission. This software may be used free of charge for academic research and teaching purposes only. Commercial use, redistribution, modification, or reverse engineering is strictly prohibited. Access to source code is restricted and granted only under specific agreements. For licensing inquiries or commercial use, please contact: Tim C. Lueth

Algorithm (Workflow)

This function, PLof3dist, is designed to create a 3-point tracker geometry using specified distances. It is part of the SolidGeometry library.

Input Parameters

Output Results

Algorithm Steps

  1. Calculate d3 as sqrt(d1^2 + d2^2) if not provided.
  2. Check if srt is true. If so, sort d1, d2, and d3 in ascending order and reassign them.
  3. Define point A0 at the origin [0, 0].
  4. Define point B0 at [d1, 0].
  5. Calculate point C0 using the function cross2circ with inputs A0, B0, d3, and d2.
  6. If C0 is NaN, throw an error indicating no solution exists if d1 > d2 + d3.
  7. Construct the point list PL with points A0, B0, and C0.
  8. Calculate the area n of the triangle using the cross product of vectors [B0 0] - [A0 0] and [C0 0] - [A0 0].
  9. If n is less than 1e-12, issue a warning indicating a straight line.
  10. If no output is requested, plot the geometry using SGfigure and CPLplot.
Algorithm explaination created using ChatGPT on 2025-08-19 01:25. (Please note: No guarantee for the correctness of this explanation)

Last html export of this page out of FM database by TL: 2025-09-21