miofPLA0B0

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Kinematics and Frames
Introduced first in SolidGeometry 4.4, Creation date: 2019-01-14, Last change: 2025-09-14

returns the index of the minimal relative angle to the axis between A0 and B0

Description

This function is used to find the circshift index for the point list of a fourbar-linkage. The original PL describes a circle around P0 starting at 0 degrees to 360 degrees. However, it makes more sense to rotate the PL relative to the axis A0B0. Therefore all results of invkinplan2 have to be circshifted.
This auxiliary function is used in fourBarLinkageplotanim.

See Also: invkinplan2 , fourBarLinkageplotanim , checkfourbarsegment , shiftindexofinvkinplan2 , realfourbarsolutions

Example Illustration

 missing image of miofPLA0B0(PL,A0,B0)

Syntax

mi=miofPLA0B0(PL,A0,B0)

Input Parameter

PL: Point List (A1) of a fourbar linkage
A0: Base Point A0
B0: Base Point B0

Output Parameter

mi: shift index for PL=circshift(PL,-mi)

Examples


miofPLA0B0(PLcircle(10),[0 0],[10 10])
miofPLA0B0(PLcircle(10)+[5 4],[5 4],[10 10])
% mi=miofPLA0B0(PL,A0,B0); PL=circshift(PL,-mi); B1=circshift(B1,-mi);




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