VLswapY

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Spatial Relations
Introduced first in SolidGeometry 1.0, Creation date: 2013-04-23, Last change: 2025-09-14

returns a 2D or 3D point/vertex list, mirrored at the y-Axis



See Also: VLswapYZ , VLswapZY , VLswapXY , VLswapYX , VLswapZX , VLswapXZ , VLswapX , VLswapZ

Example Illustration

 missing image of VLswapY(VL)

Syntax

RVL=VLswapY(VL)

Input Parameter

VL: Vertex list

Output Parameter

RVL: Resulting vertex list




Copyright 2013-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, VLswapY, is designed to mirror a list of 2D or 3D vertices along the y-axis. It is part of the SolidGeometry library and was introduced by Tim Lueth in 2013.

Input Parameters

Output Results

Algorithm Explanation

The function begins by copying the input vertex list VL to the output variable RVL. This ensures that the original list is not modified.

The core operation of the function is performed in the line:

RVL=[RVL(:,1) -RVL(:,2) RVL(:,3:size(RVL,2))];

This line constructs a new matrix for RVL by performing the following operations:

The function does not contain any conditional statements or switch cases, making its operation straightforward and efficient for the task of mirroring vertices along the y-axis.

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