CPLfitinCPLrot

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - CPL/Closed Polygon Lists
Introduced first in SolidGeometry 5.1, Creation date: 2021-11-23, Last change: 2025-09-15

shifts a CPL into the center of another and rotates for optimal fit



See Also: CPLfitinCPLscale

Example Illustration

 missing image of CPLfitinCPLrot(CPLA,CPLB,n)

Syntax

[CPLN,ww]=CPLfitinCPLrot(CPLA,CPLB,[n])

Input Parameter

CPLA: CPL to fit CPLB in
CPLB: CPL to be rotated to fit into CPLA
n: number of angeles to try for best fit; default is

Output Parameter

CPLN: New Conotur
ww: rotation angle

Examples


CPLfitinCPLrot(PLsquare([50,10]), 30+PLtransR(PLsquare([40,8]),rot(pi*rand)),40)




Copyright 2021-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

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