Java-Gaming.org Hi !
 Featured games (84) games approved by the League of Dukes Games in Showcase (563) Games in Android Showcase (151) games submitted by our members Games in WIP (604) 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 936 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: 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
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: 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
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: 351
Projects: 11
Exp: 3 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.

 wxwsk8er (49 views) 2015-03-20 15:39:46 Fairy Tailz (42 views) 2015-03-15 21:52:20 Olo (26 views) 2015-03-13 17:51:59 Olo (29 views) 2015-03-13 17:50:51 Olo (33 views) 2015-03-13 17:50:16 Olo (40 views) 2015-03-13 17:47:07 ClaasJG (29 views) 2015-03-10 11:36:42 ClaasJG (36 views) 2015-03-10 11:33:01 Pippogeek (45 views) 2015-03-05 14:36:23 Pippogeek (37 views) 2015-03-05 13:56:12
 KevinWorkman 23x LiquidNitrogen 23x BurntPizza 21x basil_ 21x theagentd 18x Riven 18x EgonOlsen 17x Roquen 14x princec 12x SHC 9x Varkas 9x Slyth2727 9x NegativeZero 9x Ecumene 8x nsigma 7x wessles 7x
 How to: JGO Wikiby Mac702015-02-17 20:56:162D Dynamic Lighting2015-01-01 20:25:42How do I start Java Game Development?by gouessej2014-12-27 19:41:21Resources for WIP gamesby kpars2014-12-18 10:26:14Understanding relations between setOrigin, setScale and setPosition in libGdx2014-10-09 22:35:00Definite guide to supporting multiple device resolutions on Android (2014)2014-10-02 22:36:02List of Learning Resources2014-08-16 10:40:00List of Learning Resources2014-08-05 19:33:27
 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