GMLscripts.com

Discuss and collaborate on GML scripts
Invert

You are not logged in.

#1 2015-07-01 08:44:08

GameGoblin
GameGoblin
From: India
Registered: 2015-06-30
Posts: 8
Website

polygon_side_area()

Expand///polygon_side_area(numberofsides,len)
//Returns the area of a regular polygon depending on the number of sides and distance between the center of the polygon and one of its corners
//
//numberofsides - number of sides in the polygon, real
//len - distance between the center of the polygon and one of its corners, real
//
///GMLscripts.com/license

return ((1/2) * argument0 * sin(360/argument0) * argument1 * 2);

Offline

Board footer

Powered by FluxBB