Trying to make life worth

Sunday, December 30, 2018

How to determine whether the two Bounding boxes intersect or not ?

Let's assume we two Bounding Box A and B.  Proof is by contradiction. Any one of four conditions guarantees that no overlap can exist:
  • Cond1. If A's left edge is to the right of the B's right edge, - then A is Totally to right Of B
  • Cond2. If A's right edge is to the left of the B's left edge, - then A is Totally to left Of B
  • Cond3. If A's top edge is below B's bottom edge, - then A is Totally below B
  • Cond4. If A's bottom edge is above B's top edge, - then A is Totally above B
  • Cond5. If A's front edge is below B's bottom edge, - then A is Totally below B
  • Cond6 If A's back edge is above B's top edge, - then A is Totally above B
So condition for Intersect is
Cond1 && Cond2 && Cond3 && Cond4 && Cond5 && Cond6
Intesect Consdition: ((b_xmax >= a_xmin) && (b_xmin <= a_xmax) &&
            (b_ymax >= a_ymin) && (b_ymin <= a_ymax) &&
            (b_zmax >= a_zmin) && (b_zmin <= a_zmax))

How to Visit Lansdowne ?

I visited Lansdowne with my wife on 5th October by train(14041 MUSSOORIE EXP 22.25PM Friday ) from Old Delhi Railway station(Nearest Metro Station Chandi Chowk) to Kotdwara(Nearest Railway station of Lansdowne). I reached in the morning around 7 Am and took a sharing Bolero (Each person 80rs) to reach to the city market of Lansdowne.
After reaching Lansdowne we had breakfast at one local restaurant then we headed towards Bhulla Tal lake (Around 1 km from Lansdowne city market) on foot. Ticket of Bhulla Tal lake is 20rs per person. We took many pics and enjoyed the peaceful environment there.
Then we move toward our resort Tip n Top (1.5 Km on foot). on the way, we visited St. Mary’s Church. After reaching resort we took some rest and freshen up ourselves then we ate Maggi and omelet at Maggi point outside of Tip N Top resort. Maggi and omelet were awesome. Then we enjoyed the Tip N Top point really awesome resort and hill. then in the next morning, we enjoyed the sunrise with a hot cup of tea and after getting ready we came down in the city market around 9oclock and then we went on foot to Bhim Pakoda around 2 km from the city market. The journey is worth than a destination of Bhim Pakoda. then we came back around 12 in the afternoon and had tea on Dhaba. then we hired a small car (1200rs from and to ) for Tarakeshwar Mahadev Temple. Again way to reach Temple is awesome it is worth to spend 1200rs. then came back around 5 o'clock and reached Kotdwara Railway station by passenger Bolero(Same 80rs per person). then wait for Train till 10:30 in the Waiting room.
then Reached Delhi in the morning(8:30 Am) by train (24042 MUSSOORIE EXP)
Recommendation :
  1. Book Tip n Tip Resort in 2700rs by website Garhwal Mandal Vikas Nigam Ltd. it is worth you will stay on the Top point where people came to visit for 1 hour and you will stay there for Night and you will Enjoy sunrise and sunset. it is an awesome resort and try to take Yellow Hut ( Hut Number 101 and 102).
  2. Visit Tarakeshwar Mahadev temple first Day After Reaching Resort and bath come back to City market and Hire Cab.
  3. Book Return Ticket (14043 GARHWAL EXPRESS 15.30 ) so no need to wait in Night for 10:30 PM train.