Syntax
PL=PLtrans0(PL)
Input Parameter
Output Parameter
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
- PL: A point list with dimensions
nx2
, where n
is the number of points, and each point has two coordinates (x, y).
Output Results
- PL: The transformed point list, still with dimensions
nx2
, but now centered around the origin.
Algorithm Steps
- 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.
- 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.
- 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.
- 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