This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// A demo app showing how to compute tightest possible oriented bounding box/rectangle of a convex polygon. | |
// The order of edges matters, so the points should be in order. In case of convex polygons you can just radially sort them. | |
// | |
// By Jakub Tomšů | |
package poly_obb_demo | |
import "core:fmt" | |
import "core:math/linalg" | |
import rl "vendor:raylib" |
OlderNewer