Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
radius
- Page 1
Re: How Build video-player in html And css ?
Programming
17 Hours Ago
by simhakidsden
You can build a video player in HTML and CSS by using the <video> element to display the video and styling it with CSS to customize its appearance and layout. You can also use JavaScript to add additional functionality, such as play, pause, and volume controls.
Re: Bouncing Balls: Creating a new ball when two balls collide
Programming
Software Development
2 Months Ago
by toneewa
…return new Rectangle(this.x, this.y, this.
radius
, this.
radius
); } public boolean collides(Ball b){ return this.…distanceSquared = dx * dx + dy * dy; return distanceSquared <=
radius
*
radius
; } } BallPanel.java: import java.awt.event.ActionListener; import java.awt…
Bouncing Balls: Creating a new ball when two balls collide
Programming
Software Development
2 Months Ago
by jprog1000
…this.y = y; } public int getRadius(){ return this.
radius
; } public Rectangle getBounds(){ return new Rectangle(this.x, this….y, this.
radius
, this.
radius
); } public boolean collides(Ball b){ return this.…
Re: Bouncing Balls: Creating a new ball when two balls collide
Programming
Software Development
2 Months Ago
by toneewa
…} return false; } public int getRadius(){ return this.
radius
; } public Rectangle getBounds(){ return new Rectangle(this.x,… this.y, this.
radius
, this.
radius
); } public boolean collides(Ball b){ return…
Re: How Build video-player in html And css ?
Programming
2 Months Ago
by Kirubel_2
…font-family: arial; font-weight: bold; font-size: 10px; border-
radius
: 15px; margin-left: 40%; margin-right: 5%; } #b{…#070707; border:1px solid transparent; margin-bottom: 10px; border-
radius
: 0px 0px 30px 30px; text-align: center; width: 130px…
How Build Html form ?
Programming
Web Development
2 Months Ago
by Kirubel_2
….4; margin-top: 10px; height: 50px; width: 50%; border-
radius
: 5px; color: black; font-family: 'Lucida Sans', 'Lucida Sans… background-color: #ae4732fe; font-size: 15px; color: white; border-
radius
: 50%; padding: 7px 14px; cursor:pointer; font-style: arial;…
How Build video-player in html And css ?
Programming
2 Months Ago
by Kirubel_2
…="30px" width="30px" style="border-
radius
: 50%; border: 1px soild #0003;"> </div>…
Re: Bouncing Balls: Creating a new ball when two balls collide
Programming
Software Development
2 Months Ago
by jprog1000
Thank you so much for your reply and additions! It is certainly working as I wanted. I will read through the code you have added and ask you any questions I might have. I hope you don't mind. Regards
Re: Bouncing Balls: Creating a new ball when two balls collide
Programming
Software Development
2 Months Ago
by Dani
I’ll mark this question solved :)
Re: Bouncing Balls: Creating a new ball when two balls collide
Programming
Software Development
2 Months Ago
by Dani
… oh, sorry, missed the bit about you still needing clarifications. Feel feee to ask :) I’ll now unmark this topic as solved. /facepalm
Re: Bouncing Balls: Creating a new ball when two balls collide
Programming
Software Development
2 Months Ago
by jprog1000
Hello, Thank you again so much! All your additions are clear, but it seems like whenever two balls collide, more than one ball is added to the arraylist and painted. Any way to have just one ball added to the panel for every collision? Have some kind of a toggle flag in paintcomponent? Regards
Re: Bouncing Balls: Creating a new ball when two balls collide
Programming
Software Development
2 Months Ago
by toneewa
Yes, this is true. Overlapping ball spawns can do that causing a chain reaction. Something like that could be done. How you handle the spawning of the new ball is what I played with a bit before. You will see better collision detection changing to: g.fillOval(ball.getX(), ball.getY(), 1 * ball.getRadius(), 1 * ball.getRadius());
Re: Bouncing Balls: Creating a new ball when two balls collide
Programming
Software Development
2 Months Ago
by jprog1000
Got it. Thank you so much!
Re: Bouncing Balls: Creating a new ball when two balls collide
Programming
Software Development
1 Month Ago
by aishamushtaq
Hi, Its helpful for me. I got my answer.
Re: How Build Html form ?
Programming
Web Development
1 Month Ago
by Dani
I'm not exactly understanding your question. I see you have an HTML form here in this HTML code. What is not working about it? You need to specify the action="#" to be a URL that will process the form.
Re: Radius Help?
Programming
Software Development
13 Years Ago
by Unhnd_Exception
[QUOTE=;][/QUOTE] [code] Public Class Form1 Private Function GetAreaOfCircle(ByVal
radius
As Double) As Double Return Math.Round(Math.PI * Math.… As Double) As Double Return Math.Round(0.3333333333 * GetAreaOfCircle(
radius
) * height, 9) End Function Private Sub ButtonCalculateAreaOfCircle_Click(ByVal sender As…
Radius Help?
Programming
Software Development
13 Years Ago
by davewillis
… how to prompt the user for a # that represents a
radius
of some circle and place that # into a variable and… to calculate the area of the circle with the given
radius
. need to use a user=defined constant for the value…. generate a msgbox to display i.e. a cirlce with
radius
27 has area 2,290.2191 a cone with…
Re: Radius Help?
Programming
Software Development
13 Years Ago
by rohan_tahil
… u add a textbox to ur form to input the
radius
.. also add a calculate button.. when u double click the… you can access the value that was typed into the
radius
textbox by using "textbox_name.Text" and to convert…
RADIUS sever
Hardware and Software
Networking
15 Years Ago
by codewizad
can you guys explain to me what is a
RADIUS
sever
Re: RADIUS sever
Hardware and Software
Networking
15 Years Ago
by mostafadotnet
The
RADIUS
is used for AAA which is Authentication, Authorization and Accounting. Other details are there in Wikipedia.org. Good luck.
Re: <Input> $radius and echo $pi - issue
Programming
Web Development
11 Years Ago
by LastMitch
… $pi = "3.1415927"; $
radius
= ' '; $
radius
= isset($_GET['
radius
']) ? (float)$_GET['
radius
'] : 0; echo $
radius
* M_PI; ?> I enter **12**…pi = "3.1415927"; $
radius
= ' '; $
radius
= isset($_GET['
radius
']) * isset($_GET['
radius
']) : 0; echo $
radius
* M_PI; ?> Any Suggestions? …
effective radius" of a bicycle gear
Programming
Software Development
15 Years Ago
by DesiFrank
…the front and rear chain sprockets, as follows: Effective
radius
=
radius
* teeth on the front sprocket / teeth on …;); effectiveradius= UserInput.readdouble(); System.out.println("nThe effective
radius
for
radius
: " + Effective
radius
+"and sprockets " + frontsprocket ); // print …
Re: <Input> $radius and echo $pi - issue
Programming
Web Development
11 Years Ago
by LastMitch
… $pi = "3.1415927"; $
radius
= ' '; $
radius
= isset($_GET['
radius
']) ? (float)$_GET['
radius
'] : 0; $area = round($
radius
* $
radius
* $pi, 7); echo $area; ?>… `1963.4954375` The equation balance out! `$pi * ($
radius
* $
radius
)` = `$pi * ($
radius
* $
radius
)` which is `1963.4954375` = `1963.4954375` Thanks …
<Input> $radius and echo $pi - issue
Programming
Web Development
11 Years Ago
by LastMitch
…php $pi = "3.1415927"; $
radius
= 8; echo $pi * ($
radius
* $
radius
); ?> The past few days I been trying…body> </html> This is my `
radius
.php`, this where it does the calculation: <?php… my output: <?php echo $pi * ($
radius
* $
radius
); ?> I appreciated any suggestions or comments and…
Re: <Input> $radius and echo $pi - issue
Programming
Web Development
11 Years Ago
by LastMitch
…<?php $pi = "3.1415927"; $
radius
= 6; echo $pi * ($
radius
* $
radius
); ?> The answer is this: `113.0973372 ` …- <?php $pi = "3.1415927"; $
radius
= ' '; $
radius
= isset($_GET['
radius
']) ? (float)$
radius
: 0; echo $
radius
* $pi; ?> I apprecaite your help.
Problem with radius program
Programming
Software Development
14 Years Ago
by soapyillusion
… using namespace std; // prototypes go here double
radius
(int,int,int,int); double circumfrence(double, double…;< "This Program Finds The Area,
Radius
and Circumfrence of a circle!" <<… } double area(double pi, double
radius
) { double ar; ar=pi*(
radius
*
radius
); return ar; } double circumfrence(double …
Re: <Input> $radius and echo $pi - issue
Programming
Web Development
11 Years Ago
by blocblue
The first line was simply to find the
radius
value entered in the form. Leave that as it is. … circle with the specified
radius
. <?php // Find
radius
$
radius
= isset($_GET['
radius
']) ? (float)$_GET['
radius
'] : 0; // Output area of circle with specified
radius
echo $
radius
* $
radius
* M_PI;
Re: effective radius" of a bicycle gear
Programming
Software Development
15 Years Ago
by DesiFrank
….exit(0); } // calculation for
radius
eftRadius1 = (wheelRadius*frontSprocket)/rearSprocket; //print
radius
System.out.println("The effective
radius
for
radius
" + wheelRadius + "and…
Re: <Input> $radius and echo $pi - issue
Programming
Web Development
11 Years Ago
by blocblue
… to. <?php // Find
radius
$
radius
= isset($_GET['
radius
']) ? (float)$_GET['
radius
'] : 0; // Calculate area of circle with specified
radius
$area = round($
radius
* $
radius
* M_PI, 7); echo…
Re: <Input> $radius and echo $pi - issue
Programming
Web Development
11 Years Ago
by blocblue
So you have your form with an element called
radius
. In your `
radius
.php` file, just retrieve the value from the URL. <?php $
radius
= isset($_GET['
radius
']) ? (float)$
radius
: 0; echo $
radius
* M_PI;
1
2
3
17
Next
Last
Search
Search
Forum Categories
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
Forums
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
© 2024 DaniWeb® LLC