Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #6252 > unrolled thread
| Started by | rap66@abv.bg |
|---|---|
| First post | 2013-11-20 03:28 -0800 |
| Last post | 2013-11-21 23:11 +0100 |
| Articles | 8 — 4 participants |
Back to article view | Back to comp.lang.clipper.visual-objects
Convert degrees to radians and radians to degrees rap66@abv.bg - 2013-11-20 03:28 -0800
Re: Convert degrees to radians and radians to degrees Karl Faller <mail_withoutthat_@_drei-f_andthat_.de> - 2013-11-20 12:52 +0100
Re: Convert degrees to radians and radians to degrees dlzc <dlzc1@cox.net> - 2013-11-20 06:42 -0800
Re: Convert degrees to radians and radians to degrees Karl Faller <mail_withoutthat_@_drei-f_andthat_.de> - 2013-11-20 16:56 +0100
Re: Convert degrees to radians and radians to degrees rap66@abv.bg - 2013-11-20 09:21 -0800
Re: Convert degrees to radians and radians to degrees dlzc <dlzc1@cox.net> - 2013-11-20 10:07 -0800
Re: Convert degrees to radians and radians to degrees "Francesco F." <francescangeli.f.remove@remove.gmail.com> - 2013-11-21 23:07 +0100
Re: Convert degrees to radians and radians to degrees "Francesco F." <francescangeli.f.remove@remove.gmail.com> - 2013-11-21 23:11 +0100
| From | rap66@abv.bg |
|---|---|
| Date | 2013-11-20 03:28 -0800 |
| Subject | Convert degrees to radians and radians to degrees |
| Message-ID | <2d6edf30-c97d-4852-bc45-48f9a94024e8@googlegroups.com> |
Hello. Does VO 2.7 function to convert degrees to radians and radians to degrees ?
[toc] | [next] | [standalone]
| From | Karl Faller <mail_withoutthat_@_drei-f_andthat_.de> |
|---|---|
| Date | 2013-11-20 12:52 +0100 |
| Message-ID | <rh8p89l4chg8k85k1ct4dm7s85959li0qk@4ax.com> |
| In reply to | #6252 |
Whoever, >Hello. >Does VO 2.7 function to convert degrees to radians and radians to degrees ? FUNCTION DegToRad( fDeg AS FLOAT ) AS FLOAT STRICT RETURN fDeg * PI / 180.0 FUNCTION DegToRad( fDeg AS FLOAT ) AS FLOAT STRICT RETURN fDeg * PI / 180.0 HTH Karl
[toc] | [prev] | [next] | [standalone]
| From | dlzc <dlzc1@cox.net> |
|---|---|
| Date | 2013-11-20 06:42 -0800 |
| Message-ID | <9d2bac83-50c4-4758-9071-1f9c0718a18e@googlegroups.com> |
| In reply to | #6253 |
On Wednesday, November 20, 2013 4:52:09 AM UTC-7, Karl Faller wrote: > Whoever, > > > > >Hello. > > >Does VO 2.7 function to convert degrees to radians and radians to degrees ? > > FUNCTION DegToRad( fDeg AS FLOAT ) AS FLOAT STRICT > > RETURN fDeg * PI / 180.0 ... > FUNCTION RadToDeg( fRad AS FLOAT ) AS FLOAT STRICT > > RETURN fRad * 180.0 / PI Just inverting for you... David A. Smith
[toc] | [prev] | [next] | [standalone]
| From | Karl Faller <mail_withoutthat_@_drei-f_andthat_.de> |
|---|---|
| Date | 2013-11-20 16:56 +0100 |
| Message-ID | <cqmp895da4inj6g84vpuevc1esdi2br66o@4ax.com> |
| In reply to | #6254 |
David, this is what comes from cut&paste with Brain = OFF, Sorry & THX Karl >On Wednesday, November 20, 2013 4:52:09 AM UTC-7, Karl Faller wrote: >> Whoever, >> >> >> >> >Hello. >> >> >Does VO 2.7 function to convert degrees to radians and radians to degrees ? >> >> FUNCTION DegToRad( fDeg AS FLOAT ) AS FLOAT STRICT >> >> RETURN fDeg * PI / 180.0 > >... > >> FUNCTION RadToDeg( fRad AS FLOAT ) AS FLOAT STRICT >> >> RETURN fRad * 180.0 / PI > >Just inverting for you... > >David A. Smith
[toc] | [prev] | [next] | [standalone]
| From | rap66@abv.bg |
|---|---|
| Date | 2013-11-20 09:21 -0800 |
| Message-ID | <f78b97ce-ec53-4b6a-86ae-8d9ef239e4e9@googlegroups.com> |
| In reply to | #6252 |
Thanks! I find more and functions acos() and asin()
[toc] | [prev] | [next] | [standalone]
| From | dlzc <dlzc1@cox.net> |
|---|---|
| Date | 2013-11-20 10:07 -0800 |
| Message-ID | <f9ac8d11-858a-4630-925a-68497cc4345b@googlegroups.com> |
| In reply to | #6256 |
Dear ra... On Wednesday, November 20, 2013 10:21:25 AM UTC-7, ra...@abv.bg wrote: > Thanks! I find more and functions acos() and asin() If they are not in the basic library, you may be able to generate them from: http://en.wikipedia.org/wiki/Inverse_trigonometric_functions#Relationships_among_the_inverse_trigonometric_functions There is this clipper source also, that can be translated: http://www.the-oasis.net/ftpmaster.php3?content=ftpgenrl.htm ... down to trig.zip David A. Smith
[toc] | [prev] | [next] | [standalone]
| From | "Francesco F." <francescangeli.f.remove@remove.gmail.com> |
|---|---|
| Date | 2013-11-21 23:07 +0100 |
| Message-ID | <l6m08i$7pt$1@news.albasani.net> |
| In reply to | #6256 |
Hi, may be this can help you: FUNCTION ACos( nGrad AS REAL8 ) AS REAL8 LOCAL o AS REAL8 o := ATan2(SQRT(1-nGrad^2), nGrad) RETURN o FUNCTION ASin( nGrad AS REAL8 ) AS REAL8 LOCAL p AS REAL8 p := ATan2(nGrad, SQRT(1-nGrad^2)) RETURN p FUNCTION ATan2( nY AS REAL8, nX AS REAL8 ) AS REAL8 LOCAL m AS REAL8 DO CASE CASE nX > 0 m := ATan(D2R(nY,200) / D2R(nX,200)) CASE nX < 0 .and. nY >= 0 m := ATan(D2R(nY,200) / D2R(nX,200)) + PI CASE nX < 0 .and. nY < 0 m := ATan(D2R(nY,200) / D2R(nX,200)) - PI CASE nX = 0 m := PI / 2 ENDCASE RETURN m Francesco Il 20/11/2013 18:21, rap66@abv.bg ha scritto: > Thanks! I find more and functions acos() and asin() >
[toc] | [prev] | [next] | [standalone]
| From | "Francesco F." <francescangeli.f.remove@remove.gmail.com> |
|---|---|
| Date | 2013-11-21 23:11 +0100 |
| Message-ID | <l6m0fb$8cs$1@news.albasani.net> |
| In reply to | #6256 |
Sorry, I forgot: FUNCTION D2R( nDegrees AS REAL8, nSystem AS REAL8 ) AS REAL8 LOCAL n AS REAL8 n := ((nDegrees/nSystem) * PI) RETURN n FUNCTION R2D( nRadians AS REAL8, nSystem AS REAL8 ) AS REAL8 LOCAL n AS REAL8 n := (nSystem * (nRadians/PI)) RETURN n Il 20/11/2013 18:21, rap66@abv.bg ha scritto: > Thanks! I find more and functions acos() and asin() >
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.clipper.visual-objects
csiph-web