Example usage for com.badlogic.gdx.math Polygon area

List of usage examples for com.badlogic.gdx.math Polygon area

Introduction

In this page you can find the example usage for com.badlogic.gdx.math Polygon area.

Prototype

public float area() 

Source Link

Document

Returns the area contained within the polygon.

Usage

From source file:com.flatfisk.gnomp.math.GeometryUtils.java

License:Apache License

/**
 * @param polygon the polygon, assumed to be simple
 * @return if the vertices are in clockwise order
 *//* w  w  w.  ja v a  2  s  . c  o  m*/
public static boolean areVerticesClockwise(Polygon polygon) {
    return polygon.area() < 0;
}