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
See Also: PLtransP
, PLtransR
, PLtrans
, PLtrans1
, PLtransT
, PLtransC
PL=PLtrans0(PL)
PL: | Point list nx2 |
PL: | Point list nx2 |
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.
nx2, where n is the number of points, and each point has two coordinates (x, y).nx2, but now centered around the origin.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.VLtrans0, which centers the point list around the origin. This function is assumed to handle the transformation in three dimensions.VLtrans0 is then reduced back to two dimensions by selecting only the first two columns, PL(:,1:2), effectively discarding the z-coordinate.nargout==0), the function will plot the transformed point list using SGfigure and PLplot(PL).