Recent content by sciwizeh

  1. S

    Gradient and Laplacian of three functions

    But it is: Technically this would be under the heading of "just independent study." (No?) Anyhow, h is actually a constant, the vector is r, so it would be: ∇W = <\frac{∂W}{∂r_x},\frac{∂W}{∂r_y},\frac{∂W}{∂r_z}> correct? Digging through more papers I've found: (note, I've also changed r to r...
  2. S

    Gradient and Laplacian of three functions

    Yes, I know, but I am no longer in school and I never took multi-variable calculus. I also have read the wikipedia page on them and I get the principal, but I don't know how to deal with the magnitude operation, also it's been years since I've done any kind of calculus work so I don't remember...
  3. S

    Gradient and Laplacian of three functions

    Hello, I've been reading up on Smoothed Particle Hydrodynamics. While reading some papers I found some math that I do not know how to do because I never took multi variable calculus. I need the gradient and laplacian of all three of the following functions ( h is a constant )...
  4. S

    Fastest way to determine if a circle fully covers a rectangle

    Thanks for the advice, perhaps more information could help. I'm building a region quad-tree based image like the one in http://donar.umiacs.umd.edu/quadtree/regions/regionquad.html" . I have generalized it slightly, and I want to add a circle drawing function. I'm just trying to figure out a...
  5. S

    Fastest way to determine if a circle fully covers a rectangle

    I think you misunderstood the question. I attached a picture to make it clear, I need to know which rectangles are enclosed by the circle, in the image C and D. I'm trying to find faster way than checking if all four points are in the circle to determine if the rectangle is.
  6. S

    Fastest way to determine if a circle fully covers a rectangle

    As usual I'm working on a program and I'm having trouble with math/efficiency. Homework Statement I need a way to find out if a circle given as a point and a radius C(x,y,r) fully encloses a rectangle given by the top left corner and the width and height R(x,y,w,h) I only need to know...
  7. S

    Solve Acute Angle Problem in 2D Sim/Game

    Well, as I can't edit anymore, I'm double posting and bumping because I've decided to automatically generate a graph and go just use A* to find paths. Looking at my intended end result, I really do need path finding that will go around things, so this is likely the best way for my project. I'm...
  8. S

    Solve Acute Angle Problem in 2D Sim/Game

    So, I'm working on a 2D sim/game in which "people" aka circles travel around a "city" aka plane with boxes and line barriers. In the person step I'm passing a list of line segments, consisting of walls boundaries etc. and I'm having a bit of trouble when two lines meet at an acute angle. When...
  9. S

    How Can I Use Reverse Linear Interpolation in My Computer Simulation?

    Thank you for the explanation, that is exactly what i needed. about your notes, i am aware that it is meant to be visually appealing for games, in fact I'm trying to make a simple sandbox game with wind, and i think that this will be a good starting point. i hope to make something similar to...
  10. S

    How Can I Use Reverse Linear Interpolation in My Computer Simulation?

    Thanks for the fast reply, I'm not sure that is what I need, I do intend to use a linear variation. I have the continuous value from between two discrete points, and i want to know what the discrete points should be based on the value here is the situation assuming that there is a linear...
  11. S

    How Can I Use Reverse Linear Interpolation in My Computer Simulation?

    I've run into a problem programming a computer simulation. I have a discrete grid of values and a point an the middle with a value and I need to take the value and put it into the grid. I've been working on the 1 dimensional problem, and I can't get it. I know it's something simple I'm missing...
  12. S

    Finding necesary Muzzle Velocity?

    I'm having some trouble implementing this, i keep getting NaN (aka, i). I understand that for some angles there is no velocity that will suffice, but when i don't get NaN the velocity is not enough to reach the other cannon. this is in java, but it should be easy enough to understand for...
  13. S

    Solving V in Equation: tanθ = v2 ± √v4 - g(gR2 - 2v2h) / gR

    thanks for the help, I would not have thought to reverse the quadratic formula. kuruman is correct, it is simpler to use tangent, for my application. thanks again.
  14. S

    Solving V in Equation: tanθ = v2 ± √v4 - g(gR2 - 2v2h) / gR

    first not homework... i need to solve and equation for a certain variable so that i can incorporate it into a game. I need to solve for V in this equation: tan\theta=\frac{v^{2}\pm \sqrt{v^{4}-g(gR^{2}-2v^{2}h)}}{gR} is it even possible?
  15. S

    Finding necesary Muzzle Velocity?

    not quite, this sums it up (hopefully my poor drawing abilities get the point across):
Back
Top