Is the Point in a Triangle?
Check whether a point or multiple points is/are in a triangle with three corners
Points = [x, y];
Triangle = [x1, y1; x2, y...
15 hours ago
Solved
Rotation matrix of a sequence of 3D points
Given a sequence of rotation matrices Rotation_Matrix [3x3xN], and a sequence of 3D points [3x1xN], compute the [3xN] sequence i...
Higher! Lower! Correct!
In he game of "Guess the number", the game leader mentally pictures a number between a lower and higher number, and then asks th...
Estimate Pi by Monte Carlo method
We can estimate the value of pi with random number by Monte Carlo method.
Suppose we have a square of side length of 1 and a q...
15 hours ago
Solved
Find my daddy long leg (No 's')
Given the ratio of the two legs (longer / shorter), and the hypotenuse length, find the value of the bigger leg.