Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 742 results for
radians
- Page 1
Degrees to Radians
Programming
Software Development
16 Years Ago
by vckicks
The .Net Framework uses by default
radians
in its trigonometry calculations. Find out how to convert degrees to
radians
to use with C#
VB6 : is possible convert radians to pixels?
Programming
Game Development
1 Year Ago
by Joaquim_5
VB6 : is possible convert
radians
to pixels? the WindowViewe is 200 pixels. so i need … pixels) to 200. but how can i convert pixels to
Radians
... the PlayerAngle is the 100 pixel(the half of WindowViewe…
Re: Degrees to Radians
Programming
Software Development
16 Years Ago
by ddanbe
What about 45°30'10''? Angles don't always come in whole parts.
Re: Degrees to Radians
Programming
Software Development
16 Years Ago
by vckicks
If the angle isn't whole use a decimal point (45.352343). If you want to convert something like 45°30'10'' to a decimal representation then that would be a different function to write.
Re: Degrees to Radians
Programming
Software Development
10 Years Ago
by kalaivanan
it will gives error...tan(90) will comes with values but google calc gives error...help me
Re: Degrees to Radians
Programming
Software Development
10 Years Ago
by necrovore
It gives an error because tan(90) is undefined. See [this](http://mathinstructor.net/2012/08/values-of-trigonometric-ratios-for-0-30-45-60-and-90-degrees/)
Re: Degrees to Radians
Programming
Software Development
10 Years Ago
by ddanbe
@kalaivanan: you shouldhave started a new thread People interested in angle conversion could consult [this thread](https://www.daniweb.com/software-development/csharp/code/217164/angle-conversions).
Re: VB6 : is possible convert radians to pixels?
Programming
Game Development
1 Year Ago
by AndreRet
I thought you were about to move away from vb6? :) As I mentioned in your previous post, it is difficult to answer your vb6 questions as the IDE is dead and we cannot test the code. I found the following link for you if you persist to use VB6 which might help you. [raycasting engine VB6 GDI32](https://www.youtube.com/watch?v=q81XVHPhKaw) […
Re: VB6 : is possible convert radians to pixels?
Programming
Game Development
1 Year Ago
by Joaquim_5
AndreRet: that youtube video isn't share the code... the link zip is broken :(
Re: VB6 : is possible convert radians to pixels?
Programming
Game Development
1 Year Ago
by AndreRet
It opened fine for me - www dot youtube dot com/watch?v equals q81XVHPhKaw
Re: VB6 : is possible convert radians to pixels?
Programming
Game Development
1 Year Ago
by Joaquim_5
AndreRet: i enter on link... but i was mean the zip file on description
Re: VB6 - RayCasting: why my Vertical intersection is so big?
Programming
Software Development
1 Year Ago
by cambalinho
… = vbKeyLeft) Then Player.
Radians
= Player.
Radians
-
Radians
If (Player.
Radians
<= 0) Then Player.
Radians
= 2 * PI + Player.
Radians
Player.MoveX = Cos(Player.
Radians
) * Speed Player.MoveY…
Re: VB6 - RayCasting: why my Vertical intersection is so big?
Programming
Software Development
1 Year Ago
by cambalinho
… = Nothing End ElseIf (KeyCode = vbKeyLeft) Then Player.
Radians
= Player.
Radians
-
Radians
If (Player.
Radians
<= 0) Then Player.
Radians
= 2 * PI Player.MoveX = Cos(Player…
c++
Programming
Software Development
14 Years Ago
by aarahi
…read_point(r1, a1); read_point(r2, a2); // Convert degrees to
radians
radians1 = degrees2radians(a1); radians2 = degrees2radians(a2); // Compute Cartesian…degrees2radians here: double degrees2radians(double angle) { double
radians
=angle * M_PI / 180; return
radians
; } // DEFINE FUNCTION compute_coord here: void …
VB6 - RayCasting: why my Vertical intersection is so big?
Programming
Software Development
1 Year Ago
by cambalinho
… HorizX = AX HorizY = AY StepX = StepY / Tan(Player.
Radians
) MapX = Fix((HorizX) / ObjectSize) MapY = Fix((HorizY) …VertX = AX VertY = AY StepY = StepX * Tan(Player.
Radians
) MapX = Fix((VertX) / ObjectSize) MapY = Fix((VertY) …
JFrame Code
Programming
Software Development
9 Years Ago
by hadisur_rahman
… 0)); buttonGroup1.add(
radians
);
radians
.setFont(new java.awt…)); // NOI18N
radians
.setText("
Radians
");
radians
.setBorder(new javax…) .addComponent(degrees) .addComponent(
radians
)) .addGap(18, 18, …
Nested query help
Programming
Databases
12 Years Ago
by pjh1985
…, Postcode, Lat, Lon, acos(sin($lat)*sin(
radians
(Lat)) + cos($lat)*cos(
radians
(Lat))*cos(
radians
(Lon)-$lon))*$R As D From ( Select… combine them: Select * , acos(sin($lat)*sin(
radians
(lat)) + cos($lat)*cos(
radians
(lat))*cos(
radians
(lng)-$lon))*$R As D From ( Select…
I have no idea what im doing!
Programming
Software Development
14 Years Ago
by Dragazarth
… myself i just though [CODE] from math import sin, cos,
radians
global x x = .1 def math(): global x bla = sin…(
radians
(x)) c2 = blah = cos(
radians
(x)*2) c3 = blah = cos(
radians
(x)*3) c4 = blah = cos…
Re: VB6 - RayCasting: why my Vertical intersection is so big?
Programming
Software Development
1 Year Ago
by cambalinho
… need correct another calculation after these: WallDistance = WallDistance * Cos(Player.
Radians
) 'avoiding the Fish Effect.. works correctly RayHeight = ObjectSize / WallDistance * 320…
Re: VB6 - RayCasting: why my Vertical intersection is so big?
Programming
Software Development
1 Year Ago
by cambalinho
not so easy :( WallDistance = WallDistance * Cos(Abs(RayRadians - Player.
Radians
)) 'avoiding the Fish Effect RayHeight = (ObjectSize / WallDistance) * 200 '320 is …
Re: VB6 - RayCasting: why my Vertical intersection is so big?
Programming
Software Development
1 Year Ago
by cambalinho
….MapY RadiansSteps = Radian60 / 320 On Error Resume Next RayRadians = (Player.
Radians
- Radian30) RayCounts = 0 Do While RayCounts < RayCount If (RayRadians…
Re: I have no idea what im doing!
Programming
Software Development
14 Years Ago
by vegaseat
… cos(a*x) from math import sin, cos,
radians
def find_match(x): # create a list of possible cos…9 for a in range(2, 10): blah_list.append(cos(
radians
(x)*a)) print(blah_list) # test # endless loop …breaks at x > 180 while True: bla = sin(
radians
(x)) if x > 180: break # check if …
Need help with coding Taylor Series
Programming
Software Development
14 Years Ago
by nickcolb
… static void showResults(int degrees) { String quadrant = askQuadrant(degrees); double
radians
= askRadians(degrees); double sine = askSine(degrees); double cosine = askCosine(…: %-6s, Sine: %7.3f, Cosine: %7.3f\n", degrees,
radians
, quadrant, sine + .00005, cosine + .00005); } /** * Determines the axis and …
TankWars game... need a hint :)
Programming
Software Development
15 Years Ago
by masterofpuppets
… ( s**2 ) ) ) * ( 1 + ( math.tan( math.
radians
( a ) )**2 ) ) return first - second ############################################################################################################################################################ def launchMissile( xpos… ** 2 ) / 10 ) * math.sin( math.
radians
( 2 * angle ) ) # This is the range …
ARGH!! this is so lame: int to double
Programming
Software Development
14 Years Ago
by namehere05
…combinations, even casted each variable, each //number, and nothing,
radians
keeps being integral. but if I sustitute a // constant …)*(Math.PI / 180); double sinAngle = Math.Sin(
radians
); double cosAngle = Math.Cos(
radians
); MessageBox.Show(
radians
.ToString() + "," + sinAngle.ToString() + &…
Google Store Locator problem
Programming
Web Development
14 Years Ago
by arv3
…, lat, lng, ( 3959 * acos( cos(
radians
('%s') ) * cos(
radians
( lat ) ) * cos(
radians
( lng ) -
radians
('%s') ) + sin(
radians
('%s') ) * sin(
radians
( lat ) ) ) ) AS distance FROM markers HAVING…
Select from SQL sentence
Programming
Web Development
14 Years Ago
by arv3
…, tlf, lng, ( 3959 * acos( cos(
radians
('%s') ) * cos(
radians
( lat ) ) * cos(
radians
( lng ) -
radians
('%s') ) + sin(
radians
('%s') ) * sin(
radians
( lat ) ) ) ) AS distance FROM markers HAVING…
Re: Select from SQL sentence
Programming
Web Development
14 Years Ago
by arv3
…, tlf, lng, ( 3959 * acos( cos(
radians
('%s') ) * cos(
radians
( lat ) ) * cos(
radians
( lng ) -
radians
('%s') ) + sin(
radians
('%s') ) * sin(
radians
( lat ) ) ) ) AS distance FROM markers WHERE…
How to get near by (around 5km) locations using latitude and longitude?
Programming
Web Development
9 Years Ago
by praba_web
…(`ad_list_id`));` SELECT id, ( 3959 * acos( cos(
radians
(37) ) * cos(
radians
( $lat ) ) * cos(
radians
( $lng ) -
radians
(-122) ) + sin(
radians
(37) ) * sin(
radians
( $lat ) ) ) ) AS distance FROM markers…
Re: TankWars game... need a hint :)
Programming
Software Development
15 Years Ago
by masterofpuppets
… ( time**2 ) ) + ( s * math.sin( math.
radians
( a ) ) * time ) + yp return y ############################################################################################################################################################ def … 0.08 ) xInc = ( speed * math.cos( math.
radians
( angle ) ) ) * t + xpos + 15 h …
1
2
3
13
Next
Last
Search
Search
Forums
Forum Index
Hardware/Software
Recommended Topics
Programming
Recommended Topics
Digital Media
Recommended Topics
Community Center
Recommended Topics
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2025 DaniWeb® LLC