Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
+ 7
a graphical illustration of taran's method https://code.sololearn.com/WOSkh92TwAYI/?ref=app
27th Jun 2019, 5:25 AM
Gordon
Gordon - avatar
+ 8
collision of 2 rectangles: function collisionRectanglePoint(rectangle, x, y){ return (x > rectangle.getMiddleX() - rectangle.getWidth()/2 && x < rectangle.getMiddleX() + rectangle.getWidth()/2 && y > rectangle.getMiddleY() - rectangle.getHeight()/2 && y < rectangle.getMiddleY() + rectangle.getHeight()/2); } function collisionRectangleRectangle(rect1, rect2){ return ( collisionRectanglePoint(rect1, rect2.getMiddleX() - rect2.getWidth()/2, rect2.getMiddleY() - rect2.getHeight()/2) || collisionRectanglePoint(rect1, rect2.getMiddleX() - rect2.getWidth()/2, rect2.getMiddleY() + rect2.getHeight()/2) || collisionRectanglePoint(rect1, rect2.getMiddleX() + rect2.getWidth()/2, rect2.getMiddleY() - rect2.getHeight()/2) || collisionRectanglePoint(rect1, rect2.getMiddleX() + rect2.getWidth()/2, rect2.getMiddleY() + rect2.getHeight()/2) || collisionRectanglePoint(rect2, rect1.getMiddleX(), rect2.getMiddleY()) ); }
26th Jun 2019, 2:25 PM
Anton Böhler
Anton Böhler - avatar
+ 4
collision of circles, rectangles or what?
26th Jun 2019, 2:17 PM
Anton Böhler
Anton Böhler - avatar
+ 4
wait a sec... 😅
26th Jun 2019, 2:30 PM
Anton Böhler
Anton Böhler - avatar
26th Jun 2019, 2:40 PM
Anton Böhler
Anton Böhler - avatar
+ 4
We can make responsive website With help of html+Css+Js Html is a easy to learn formatting tags We add Css in html with <style> tag and style attribute We add java script in html <script>tag
7th Jul 2019, 9:11 AM
SurajGuptaOnline
SurajGuptaOnline - avatar
+ 3
How do i strat html
29th Jun 2019, 6:40 PM
Halima Danladi Kaka
- 5
Hiii
27th Jun 2019, 2:09 AM
riswan khan.I
riswan khan.I - avatar