TofPez

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Analytical Geometry
Introduced first in SolidGeometry 3.1, Creation date: 2016-12-03, Last change: 2025-09-14

creates a T matrix from point and ez-Vector

Description

Special case is if ez=[1 0 0] or [-1 0 0]
IN SG-LIB 5.0 we have to following concepts:
- (2010) - T3P: T - right hand system from 3 Point. Origin is p1
- (2012) - TofVL: T - Eigenvalues and Center of convexhull of VL
- (2015) - PLofVL: T - ex is the longest distance of mean(VL)
- (2016) - TofPez: T - ey has no x dimension or ex=[0 0 1]
- (2019) - TofVLFL:T - ez is calucated from the face normals, o=mean(VL)
- (2020) - VLeigenvect - same as TofVL but no convex hull and faster
- (2020) - TofCVL: T - ez is calucated from the edge normals, o=mean(VL)


See Also: ezofchar , TofVLFL , VLeigenvect , TofVL , Tof3P , PLofVL , TofCVL , TofP , TofR , TofPEul , TofDPhiH

Example Illustration

 missing image of TofPez(p,ez,a)

Syntax

T=TofPez(p,ez,[a])

Input Parameter

p: point; if empty [0 0 0] or [ 0 0] is used
ez: ez-vector length is not relevant
a: optional rotation angle

Output Parameter

T: Transformation matrix; ex is set by default

Examples


TofPez('',[0 1 0])




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