diffTincz

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Analytical Geometry
Introduced first in SolidGeometry 5.1, Creation date: 2021-03-17, Last change: 2025-09-15

returns for Frames the relative incliniation of the ez vector of B wrt to A

Description

makes no sense for orthogonal vectors. ez should show into the same direction
use atan2 of the x axis
seee also diffanglew afterwards for relative angles
This fucntion is used in TLadjustR

See Also: diffT , TLadjustR , diffanglew , diffTrotz

Example Illustration

 missing image of diffTincz(TA,TB)

Syntax

w=diffTincz(TA,TB)

Input Parameter

TA: Frame A
TB: Frame b

Output Parameter

w: relative rotation of Bx relative to Ax

Examples


diffTincz(eye(4),TofR(rot(0,pi/10,pi/10),[0 0 1]))




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

Algorithm (Workflow)

This function, diffTincz, calculates the relative inclination of the ez vector of frame B with respect to frame A. It is part of the SG-Library and was introduced in SolidGeometry 5.1.

Input Parameters

Output

Algorithm Steps

  1. Extract the ez vectors from both transformation matrices, TA(1:3,3) and TB(1:3,3).
  2. Calculate the angle w between these vectors using the acos function on their dot product.
  3. Round the result w to five decimal places for precision.
  4. If no output is requested (i.e., nargout==0), perform additional visualization steps:

This function is particularly useful for determining the relative orientation of two frames in 3D space, especially when the ez vectors are not orthogonal.

Algorithm explaination created using ChatGPT on 2025-08-19 00:01. (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