From the course: Learning AutoLISP & Visual LISP
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Function: polar - AutoCAD Tutorial
From the course: Learning AutoLISP & Visual LISP
Function: polar
- [Instructor] Working with geometry, we're going to see how it's very similar to the get functions that we've looked at previously. But unlike the get functions where the user provides the angle or they provide the distance, we're going to let the LISP function provide that information back to us based upon certain parameters. The first one we're going to look at is providing us a point. It is going to provide a point based upon a distance and an angle, or bearing, from a previous point. So there's quite a few arguments that have to be provided. So let's go ahead and do the polar function here. The polar LISP function establishes that end point, as you see in my variable. The arguments needing to be used, or provided I should say, by the polar function is our starting point. So we're starting from this point. We're going at a specific angle at a specific distance. The angle provided is needing to be a radian. So if you need to convert that over, we can use different LISP functions to…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.