Java-Gaming.org Hi !
 Featured games (90) games approved by the League of Dukes Games in Showcase (777) Games in Android Showcase (231) games submitted by our members Games in WIP (856) games currently in development
 News: Read the Java Gaming Resources, or peek at the official Java tutorials
Pages: [1]
 ignore  |  Print
 Help - volume of this shape  (Read 3012 times) 0 Members and 1 Guest are viewing this topic.
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?

RobinB

JGO Ninja

Medals: 45
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
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.
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
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.

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

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

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

JGO Ninja

Medals: 45
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
tyeeeee1
 « Reply #7 - Posted 2013-03-24 20:12:17 »

I'm surprised to find an actual problem that can be solved by calculus.
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?
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...
HeroesGraveDev

JGO Kernel

Medals: 382
Projects: 11
Exp: 4 years

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

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

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

Pages: [1]
 ignore  |  Print

 hadezbladez (276 views) 2018-11-16 13:46:03 hadezbladez (154 views) 2018-11-16 13:41:33 hadezbladez (287 views) 2018-11-16 13:35:35 hadezbladez (69 views) 2018-11-16 13:32:03 EgonOlsen (2124 views) 2018-06-10 19:43:48 EgonOlsen (2148 views) 2018-06-10 19:43:44 EgonOlsen (1361 views) 2018-06-10 19:43:20 DesertCoockie (1957 views) 2018-05-13 18:23:11 nelsongames (1598 views) 2018-04-24 18:15:36 nelsongames (2246 views) 2018-04-24 18:14:32
 KaiHH 15x LiquidNitrogen 14x Spasi 13x orange451 13x bullen 9x 65K 9x Zemlaynin 8x NuclearPixels 7x polinc 7x VaTTeRGeR 5x hadezbladez 3x ral0r2 3x CommanderKeith 2x SHC 2x berzas 1x Riven 1x
 Deployment and Packagingby mudlee2018-08-22 18:09:50Java Gaming Resourcesby gouessej2018-08-22 08:19:41Deployment and Packagingby gouessej2018-08-22 08:04:08Deployment and Packagingby gouessej2018-08-22 08:03:45Deployment and Packagingby philfrei2018-08-20 02:33:38Deployment and Packagingby philfrei2018-08-20 02:29:55Deployment and Packagingby philfrei2018-08-19 23:56:20Deployment and Packagingby philfrei2018-08-19 23:54:46
 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