PL=PLcircleui
PL : | Point List |
PLsquare(30,10); PLcircleui % interactively creating a Point list for a circle
This function, PLcircleui
, is designed to interactively create a point list (PL) for a circle. It is part of the SolidGeometry library and was developed by Tim Lueth in 2019.
The function does not take any input parameters directly when called. Instead, it relies on user interaction to define the circle's parameters.
The function returns a point list (PL) representing the circle.
ginput2Dcircle
, which allows the user to interactively define a circle in a 2D space. This function returns two values:
cc
: The center coordinates of the circle.cr
: The radius of the circle.PLcircle(cr)
, which generates a point list for a circle with the specified radius cr
.cc
are added to the point list to position the circle correctly in the 2D space.PLplot(PL,'r-')
, which displays the circle in red.The function is part of a larger library that includes various utilities for creating and manipulating geometric shapes. It is specifically designed for interactive use, allowing users to define shapes visually.
Algorithm explaination created using ChatGPT on 2025-08-18 23:09. (Please note: No guarantee for the correctness of this explanation)