PLtrans0

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Spatial Relations
Introduced first in SolidGeometry 2.1, Creation date: 2015-01-30, Last change: 2025-09-14

returns an origin centered point list



See Also: PLtransP , PLtransR , PLtrans , PLtrans1 , PLtransT , PLtransC

Example Illustration

 missing image of PLtrans0(PL)

Syntax

PL=PLtrans0(PL)

Input Parameter

PL: Point list nx2

Output Parameter

PL: Point list nx2




Copyright 2015-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, PLtrans0, is designed to transform a given point list by centering it around the origin. It is part of the SolidGeometry library and is classified under auxiliary procedures.

Input Parameters

Output Results

Algorithm Steps

  1. The function VLaddz(PL,0) is called, which likely adds a third dimension (z-coordinate) with a value of 0 to each point in the list, converting it to an nx3 format.
  2. The transformed list is then passed to VLtrans0, which centers the point list around the origin. This function is assumed to handle the transformation in three dimensions.
  3. The result from VLtrans0 is then reduced back to two dimensions by selecting only the first two columns, PL(:,1:2), effectively discarding the z-coordinate.
  4. If no output is requested (nargout==0), the function will plot the transformed point list using SGfigure and PLplot(PL).
Algorithm explaination created using ChatGPT on 2025-08-18 22:07. (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