Search found 1556 matches

by Chris
Thu Feb 18, 2016 10:09 pm
Forum: Advanced Help and Support
Topic: Calculate the size of grouped 2d objects
Replies: -1
Views: 5679

Re: Calculate the size of grouped 2d objects

For anyone who is wondering, this is what I came up with:     $layers = array();     $layers[0] = new Layer();     $layers[0]->x = 10;     $layers[0]->y = 10;     $layers[0]->width = 100;     $layers[0]->height = 200;     $layers[0]->rotation = 0.3;     $layers[1] = new Layer();     $layers[1]->x = ...
by Chris
Thu Feb 18, 2016 8:31 pm
Forum: Advanced Help and Support
Topic: Calculate the size of grouped 2d objects
Replies: -1
Views: 5679

Re: Calculate the size of grouped 2d objects

I found this article for calcluating the size of a rotated rectangle, now i just need to do this for each object and then add them all together.

http://www.codepuppet.com/2014/01/11/ca ... le-in-php/
by Chris
Thu Feb 18, 2016 8:03 pm
Forum: Advanced Help and Support
Topic: Calculate the size of grouped 2d objects
Replies: -1
Views: 5679

Re: Calculate the size of grouped 2d objects

I think I'm trying to calculate a bounding box.
by Chris
Thu Feb 18, 2016 7:52 pm
Forum: Advanced Help and Support
Topic: Calculate the size of grouped 2d objects
Replies: -1
Views: 5679

Re: Calculate the size of grouped 2d objects

The biggest problem I'm facing is calculating the bottom and top position when an object has been rotated.

There's bound to be a term for doing this on which i can base my calculation.
by Chris
Thu Feb 18, 2016 7:42 pm
Forum: Advanced Help and Support
Topic: Calculate the size of grouped 2d objects
Replies: -1
Views: 5679

Calculate the size of grouped 2d objects

I have a few objects on a 2d field: https://i.imgsafe.org/4d9f0a2.png I need to calculate the size of the items when grouped together programtically: https://i.imgsafe.org/7697e03.png I have the size, position and rotation in radians of each object. Does anyone know the termanology or a method of do...
by Chris
Mon Feb 01, 2016 4:07 pm
Forum: Coding
Topic: Print Grid in Java
Replies: -1
Views: 5532

Re: Print Grid in Java

Can't help without code.
by Chris
Mon Jan 04, 2016 9:47 pm
Forum: Announcements and Site Discussion
Topic: Happy New Year 2016
Replies: -1
Views: 2716

Re: Happy New Year 2016

Happy new year!
by Chris
Fri Oct 23, 2015 3:34 pm
Forum: General
Topic: Holy Moly! I jack the price up on all my modules!
Replies: -1
Views: 2182

Re: Holy Moly! I jack the price up on all my modules!

High demand = high price :D
by Chris
Wed Sep 02, 2015 10:26 am
Forum: General Development
Topic: Trying to make a timer delayed button
Replies: -1
Views: 9382

Re: Trying to make a timer delayed button

The problem is it can't access the button as it is not added to the DOM before the script is loaded. You would need to place this inside winodw.onload or put the script at the bottom of the document. <!DOCTYPE html> <html> <head> <style> body {background-color:lightgrey} h1 {color:blue} p {color:gre...
by Chris
Fri Aug 21, 2015 3:07 pm
Forum: Off-Topic
Topic: No more energy bills for 16000 euros!
Replies: -1
Views: 8769

Re: No more energy bills for 16000 euros!

It's simply impossible => energy cannot be created, it can only be transformed. As well you cannot "destroy" or loose energy you transform it in something not useful maybe. So having the so call "https://en.wikipedia.org/wiki/Perpetual_motion" is simply impossible. You are on ab...

Go to advanced search