Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (491)
Games in Android Showcase (112)
games submitted by our members
Games in WIP (555)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Help - volume of this shape  (Read 725 times)
0 Members and 1 Guest are viewing this topic.
Offline Vermeer

JGO Coder


Medals: 16



« Posted 2013-03-24 10:59:19 »

Hi. How to calculate the volume of this shape (the bottom one). Is this correct?

Offline RobinB

JGO Ninja


Medals: 44
Projects: 1
Exp: 3 years


Spacegame in progress


« Reply #1 - Posted 2013-03-24 11:05:05 »

Well from my view this is simple.
I hope i can explain it a bit (nope i cant):

1/2 + (1/2 * 1/2) = 3/4

That would make:
vol = 3/4 h
Offline Vermeer

JGO Coder


Medals: 16



« Reply #2 - Posted 2013-03-24 11:50:22 »

Hi

Thank you for that answer. I. Not sure I get why, but I'm sure your right.
Thanks for looking at it.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Danny02
« Reply #3 - Posted 2013-03-24 12:15:05 »

you were right in the first place the answer is: 2/3h

here is how you can calculate it:
the missing space from the cuboid (i² * h) can be seen as two unregular Tetrahedron.
the volume of a Tetrahedron is (h * A / 3) were a is the bottom area.

so the missing volume of the two Tetrahedron is := 2 * (i²/2 * h) / 3

and the volume of your body := i² * h - 2 * (i²/2 * h) / 3 = i² * h * (1 - 1/3) = 2/3 * i² * h
Offline Vermeer

JGO Coder


Medals: 16



« Reply #4 - Posted 2013-03-24 12:32:13 »

Ok ty for that...that looks more like how I tried it.

I calculated it using 2x. Rectangle pyramids. But I was unsure if the fact that the centre was offset affected the formula of 1/3 x base x height.

Thank you for you reply.

PS I hope no one get another different answer!
Offline Danny02
« Reply #5 - Posted 2013-03-24 19:29:22 »

yes using a pyramid is a lot easier, I always think to complex Cheesy

with the top being off center, it is the same as with the area of triangles
Offline RobinB

JGO Ninja


Medals: 44
Projects: 1
Exp: 3 years


Spacegame in progress


« Reply #6 - Posted 2013-03-24 19:31:40 »

you were right in the first place the answer is: 2/3h

here is how you can calculate it:
the missing space from the cuboid (i² * h) can be seen as two unregular Tetrahedron.
the volume of a Tetrahedron is (h * A / 3) were a is the bottom area.

so the missing volume of the two Tetrahedron is := 2 * (i²/2 * h) / 3

and the volume of your body := i² * h - 2 * (i²/2 * h) / 3 = i² * h * (1 - 1/3) = 2/3 * i² * h

Ah f**k it im retarded.
Never gonna help solving math haha Smiley
Offline tyeeeee1
« Reply #7 - Posted 2013-03-24 20:12:17 »

I'm surprised to find an actual problem that can be solved by calculus.  Shocked
Offline Sammidysam
« Reply #8 - Posted 2013-03-24 20:13:43 »

That's calculus?  It just looks like Algebra.  Is it the := that makes it that?
Offline tyeeeee1
« Reply #9 - Posted 2013-03-24 21:00:28 »

That's calculus?  It just looks like Algebra.  Is it the := that makes it that?

It's similar to calculus. We're just learning how to do problems like these with derivatives and some other math stuff that I don't know the proper names for. An example of a question that we do would be "A can is to be made to hold a liter of oil. Find the radius of the can that will minimize the cost of the metal to make the can. (Take 1L = 1000cm3)", we also do perimeter, area, volume, etc...
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline HeroesGraveDev

JGO Kernel


Medals: 246
Projects: 11
Exp: 2 years


┬─┬ノ(ಠ_ಠノ)(╯°□°)╯︵ ┻━┻


« Reply #10 - Posted 2013-03-25 04:30:13 »

It's called Geometry.
It's a part of Calculus.

Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

Nickropheliac (15 views)
2014-08-31 22:59:12

TehJavaDev (23 views)
2014-08-28 18:26:30

CopyableCougar4 (29 views)
2014-08-22 19:31:30

atombrot (41 views)
2014-08-19 09:29:53

Tekkerue (38 views)
2014-08-16 06:45:27

Tekkerue (35 views)
2014-08-16 06:22:17

Tekkerue (24 views)
2014-08-16 06:20:21

Tekkerue (34 views)
2014-08-16 06:12:11

Rayexar (72 views)
2014-08-11 02:49:23

BurntPizza (48 views)
2014-08-09 21:09:32
List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!