PLtrans1

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 a point list moved into the first quadrant



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

Example Illustration

 missing image of PLtrans1(PL)

Syntax

PL=PLtrans1(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, PLtrans1, is designed to transform a given point list into the first quadrant of a 2D coordinate system. The function is part of the SolidGeometry library and was introduced in version 2.1.

Input Parameters

Output Results

Algorithm Steps

  1. The function VLaddz is called with the input point list PL and a second argument 0. This function likely adds a third dimension (z-coordinate) with a value of 0 to each point, converting the nx2 matrix into an nx3 matrix.
  2. The resulting matrix is then passed to the function VLtrans1. This function is responsible for transforming the points such that they are moved into the first quadrant. The exact transformation logic is encapsulated within VLtrans1.
  3. After the transformation, the function extracts the first two columns of the resulting matrix using PL(:,1:2), effectively removing the added z-coordinate and returning the points to a 2D space.

The function does not contain any switch conditions or additional parameters beyond those described. The primary purpose is to ensure that all points in the input list are positioned in the first quadrant, which is typically defined as the region where both x and y coordinates are positive.

Algorithm explaination created using ChatGPT on 2025-08-18 22:03. (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