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

Function: polar - AutoCAD Tutorial

From the course: Learning AutoLISP & Visual LISP

Start my 1-month free trial

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…

Contents