You are currently viewing the GMLscripts.com static mirror. Forum access and script submissions are not available through this mirror.

Invert GMLscripts.com

Computation :: Geometry

cone_volume(radius,height)
Returns the volume of a cone of a given radius and height.
is_clockwise(x1,y1,x2,y2,x3,y3)
Returns true if the given points are in clockwise order, false otherwise.
line_get_slope(x1,y1,x2,y2)
Returns the slope of the given line.
lines_intersect(x1,y1,x2,y2,x3,y3,x4,y4,segment)
Returns a vector multiplier (t) for an intersection on the first line.
point_in_circle(px,py,cx,cy,rad)
Returns true if the given test point is within the given circle, false otherwise.
point_in_polygon(x,y,polygon)
Returns true if the given test point is inside the given 2D polygon, false otherwise.
point_in_triangle(px,py,x1,y1,x2,y2,x3,y3)
Returns true if the given test point is within the given triangle, falso otherwise.
point_line_distance(px,py,x1,y1,x2,y2,segment)
Returns the distance from the given point to the given line.
polygon_area(polygon)
Returns the internal area of the given polygon.
polygon_centroid(polygon)
Returns the centroid of a given 2D polygon as a ds_list containing a coordiate pair.
polygon_to_triangles(polygon)
Returns a list of triangles created from a given 2D polygon.
sphere_volume(radius)
Returns the volume of a sphere of a given radius.
triangle_side_area(side1,side2,side3)
Returns the area of triangle given the length of three sides.