polar, dtr, rtd

Discussion in 'AutoCAD' started by Greg McLandsborough, Jun 4, 2004.

  1. Hi,

    I am new to Vba, having developed only in Lisp. I am converting some of my
    code, and were wondering if there are similar functions to polar, degrees to
    radian (and back). I have also written some rounding function, to round
    reals up, down or the nearest. I'm sure this has been done before, and dont
    havethe time to sit and do it again.
     
    Greg McLandsborough, Jun 4, 2004
    #1
  2. Greg McLandsborough

    Yves Guest

    Polar :

    thisdrawing.Utility.PolarPoint(Pt,Ang,Dist)

    Radian = (ang * Pi) / 180
    Angle = (Rad * 180) / Pi

    Round(number, decimals)
    Int(Number)
    Fix(number)
     
    Yves, Jun 4, 2004
    #2
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.