Tof2vec
by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Analytical Geometry
Introduced first in SolidGeometry 3.4, Creation date: 2017-02-08, Last change: 2025-09-14
returns transformation matrix based on the 2 point movements
Description
This function helps to transform points from one coordinate system into another based on two known point movements. P1 is the center of the 1st and P2 is the center of the second system.
W_T_P1 and W_T_P2 ==> P2_T_P1 ==> P2_T_P1 * P1_P
See Also: TofR
, TofVL
, TPL
, TofDPhiH
, T3ofT2
, Tof3P
, T2P
, TofP
, TofPez
, TofPEul
Example Illustration
Syntax
[T12,T21]=Tof2vec(p1,p2,q1,q2)
Input Parameter
p1: | | 1st point before movement |
p2: | | 1st point after movement |
q1: | | 2nd point before movement |
q2: | | 2nd point before movement |
Output Parameter
T12: | | 2_T_1 Transformation from T1 into T2 |
T21: | | 1_T_2 Transformation from T2 into T1 |
Examples
Tof2vec([0 10],[-10 10],[0 15],[-20 10])
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
Last html export of this page out of FM database by TL: 2025-09-21