corner2rad

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Analytical Geometry
Introduced first in SolidGeometry 5.3, Creation date: 2023-05-10, Last change: 2025-09-15

returns the radius based on the distance to the two tangets



See Also: sofrd , dofRintrusion , rofRintrusion

Example Illustration

 missing image of corner2rad(d)

Syntax

r=corner2rad(d)

Input Parameter

d: distance

Output Parameter

r: radius

Examples


corner2rad(21) % Radius of Babuulab housing




Copyright 2023-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, corner2rad, calculates the radius based on the distance to two tangents. It is part of the SolidGeometry library and was introduced in version 5.3. The function is authored by Tim C. Lueth and is classified under Analytical Geometry.

Input Parameters

Output Results

Algorithm Steps

  1. The function begins by retrieving the input parameter d using the helper function getfuncparams. If no input is provided, it defaults to 0.81.
  2. A constant f is defined as sqrt(2) - 1.
  3. The radius r is calculated using the formula r = d / f.
  4. If no output is requested (i.e., nargout == 0), the function proceeds to visualize the result:

Example

To calculate the radius for a distance of 21 mm, use the function call: corner2rad(21). This example is specifically for the Babuulab housing.

Algorithm explaination created using ChatGPT on 2025-08-18 23:15. (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