Java-Gaming.org Hi !
 Featured games (84) games approved by the League of Dukes Games in Showcase (575) Games in Android Showcase (154) games submitted by our members Games in WIP (622) 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 1018 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.
 Games published by our own members! Check 'em out!
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.

Thank you for you reply.

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...
 Games published by our own members! Check 'em out!
HeroesGraveDev

JGO Kernel

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

 BurntPizza (27 views) 2015-04-23 03:42:11 theagentd (31 views) 2015-04-22 16:23:07 Riven (45 views) 2015-04-16 10:48:47 Duke0200 (52 views) 2015-04-16 01:59:01 Fairy Tailz (38 views) 2015-04-14 20:13:12 Riven (41 views) 2015-04-12 21:36:37 bus hotdog (58 views) 2015-04-10 02:39:32 CopyableCougar4 (61 views) 2015-04-10 00:51:04 BurntPizza (62 views) 2015-04-06 22:06:58 ags1 (62 views) 2015-04-02 10:58:48
 theagentd 23x BurntPizza 16x wessles 15x alwex 11x 65K 11x kingroka123 11x Rayvolution 8x kevglass 8x phu004 8x Roquen 7x chrislo27 7x Hanksha 7x Riven 7x Olo 7x ra4king 7x Ecumene 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