Tof2P

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

returns a 4x4 HT matrix given by a point p and a vector ez [1st named T2P]

Description

T = Tof2P (p, ez) returns an homogeneous transformation matrix (HT) given by 1 points p and one vector ez. Tof2P can be used for describing a plane or a straight line as homogenous transformation matrix (HT) With p as transformation and ez as director of the z-axis, the two missing vector ex an ey are calculated from ez. If a plane is given by three points, please use T3P.

Please have in mind, that there is an discontinuity that will leads to a strong turn of the T matrix in case of subsequent moving ez vectors. To avoid this, either quaternions or euler angle or a defined turning third point (Tof3P) must be used.

See Also: TofPose , TofR , TofVL , TPL , TofDPhiH , T3ofT2 , Tof3P , T2P

Example Illustration

 missing image of Tof2P(p,ez,typ)

Syntax

T=Tof2P(p,ez,[typ])

Input Parameter

p: Point of straight line
ez: Direction of a straight line
typ:

Output Parameter

T: Matrix descibring a line using p and ez




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

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