Txy

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Analytical Geometry
Introduced first in SolidGeometry 1.0, Creation date: 2010-08-06, Last change: 2025-09-14

returns a matrix for a point p and pitch-yaw values of ez

Description

T = Txy (p, x, y) returns an homogenous transformation matrix (HT) given by one point p and the x- and y-coordinate of the ez-vector. The missing z-coordinate plus the ex-vector and the ey-vector are added.

See Also: TofPez

Example Illustration

 missing image of Txy(p,x,y)

Syntax

T=Txy(p,x,y)

Input Parameter

p: Origin of coordinate system
x: x value of z-axis
y: y value of z-axis

Output Parameter

T: is the resulting homogenous transformation matrix

Examples


Txy([0 0 0],.5,.5)




Copyright 2010-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, Txy, computes a homogeneous transformation matrix based on a given point and the x and y components of a vector along the z-axis. The function is part of the SolidGeometry library and was developed by Tim Lueth.

Input Parameters

Output

Algorithm Steps

  1. Initialize a 4x4 zero matrix T.
  2. Set the last column of T to the point p, with T(4,4) set to 1 to maintain homogeneity.
  3. Calculate the z-component of the z-axis vector using the formula: z = sqrt(1 - x^2 - y^2).
  4. Check if x equals 1:
  5. If no output is requested (nargout == 0), call SGfigure and tplot(T) to visualize the transformation matrix.
Algorithm explaination created using ChatGPT on 2025-08-19 00:51. (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