Skip to content Skip to sidebar Skip to footer
Showing posts with the label Math

Calculating A LookAt Matrix

Answer : Note the example given is a left-handed, row major matrix . So the operation is: Tran… Read more Calculating A LookAt Matrix

Calculating A 2D Vector's Cross Product

Answer : Implementation 1 returns the magnitude of the vector that would result from a regular 3… Read more Calculating A 2D Vector's Cross Product

Calculate Distance Between Two Latitude-longitude Points? (Haversine Formula)

Answer : This link might be helpful to you, as it details the use of the Haversine formula to ca… Read more Calculate Distance Between Two Latitude-longitude Points? (Haversine Formula)

Combinatoric 'N Choose R' In Java Math?

Answer : The Formula It's actually very easy to compute N choose K without even computing… Read more Combinatoric 'N Choose R' In Java Math?