[RESOLVED] drawing random triangle
I'm writing an application where I need to be able to draw a scale random triangle. So far I've defined the max bounding rectangle (170,170) and defined random angles: Code: Public Class Form1 Dim...
View Articleradius of circumcircle from 3 points formula... can someone explain?
Why is it that this formula works? Code: r=a*b*c/sqrt((a+b-c)(b+c-a)(c+a-b)(a+b+c)) this formula finds the radius of the circumcircle of a triangle (or three points, combining it with pythagoras),...
View Article[RESOLVED] Round-about way to get even distribution using Random functions.
I have a list of entities that can be targeted. Lets the list has 10 entities and the entity doing the targeting selects one at random. Its a simple matter of rnd.Next(0,10) which gives each of the 10...
View Article[RESOLVED] solving equation
I have an equation that I'm trying to solve: y =- x²⁄16 + 21x⁄16 + 11⁄8 Multiply through by 16: 16y = -x² + 21x + 22 But that's as far as I can get. I'd understand it if it was: y = -x² + 21x + 22 = 0...
View Articleshellsort and selectionsort code help
Hello guys, I'm new here and obviously I am a total Vb-newbie .. and i have a question. I'm trying to generate random numbers and then sort them. So I did the code for the 'random-generate'-stuff but...
View ArticleSolving Triangles
Assuming I have a triangle with sides a,b,c and angles A,B,C, where side a is opposite angle A etc... what is the minimum sides and angles I need in order to calculate all 3 sides and all 3 angles...
View Article[RESOLVED] Generating parallel lines.
I have a line defined by coordinates (x1,y1,x2,y2) and pairs of circles that are centered on (x1,y1). What I am looking for is a way to calculate the line coords for a connection between circles that...
View Article[RESOLVED] Reaaranging expression
Can someone have a look through my workings and tell me whether it's correct? Thanks for your help Attached Images
View ArticlePlotting scaled triangle
I have a triangle where I know all 3 side lengths, and all three angles. I need a method to plot all 3 points relative to each other and scaled so the triangle width is 250 pixels or the triangle...
View Articlehelp on computing scale
I have this actual picture with size width and height at 14x17 inches. In px @ 96 dpi, that is 1344x1632 then multiplied it by 35% and that is 470.4px x 571.2px for my fixed size of my image element....
View ArticleWho discovered the number zero?
Who discovered the number zero? When was zero invented? What year was zero invented? some body helps...thanks
View ArticleCalculate instead of simulate?
I have two combatants, A and B. Each has three stats (X,Y,Z). Each round of combat, they make three choices, and roll a random value. All of this determines the outcome of the battle, which can be a...
View Article[RESOLVED] Calculate instead of simulate?
I have two combatants, A and B. Each has three stats (X,Y,Z). Each round of combat, they make three choices, and roll a random value. All of this determines the outcome of the battle, which can be a...
View Article[RESOLVED] Calculate surface area of pyramid
How can I calculate the surface area of a regular 4 sided pyramid, using base length and overall height (not slant height)?
View ArticleDefinition and Examples of Binomial | - Algebra
Binomial is an algebraic expression (or a polynomial)...Complete information about the binomial, definition of an binomial, examples of an binomial, step by step solution of problems involving...
View ArticleCalculating Distance
So I'm actually following boop boops instructions on this thread: http://www.vbforums.com/showthread.p...nts-to-circles Here is the code that I've come up with: Code: var Point1 = {X:5, Y:5}; var...
View Article[RESOLVED] Adjusting for Zoom
This strikes me as a pure math problem. I have an image I can zoom into and out of. That works fine, but what I'm trying to do now is keep the point the same. I have an image P. I have a rectangular...
View ArticleConverting between coordinate systems
Hi all, I mistakenly placed this in the .net forum originally. My maths suck rather a lot, but I have a problem that I need to solve in code... it relates to the real world. I have an X,Y coordinate...
View ArticleCalculating Tank Volume
I am trying to calculate the volume in gallons a cylindrical tank can hold with the dimensions 5' diameter and 10' length. V = D x D x 0.7854 x L works and yields 1,468 Gallons US either by measuring...
View ArticleExpanding a convex hull
I have a list of points that describe the convex hull of an image. I can't use internal graphics scaling because I'm already using it for zoom in and out generally. The image is centered in a square so...
View Article
More Pages to Explore .....