Class Polygon

java.lang.Object
zombie.core.collision.Polygon

public class Polygon
extends java.lang.Object
  • Field Summary

    Fields
    Modifier and Type Field Description
    java.util.ArrayList edges  
    java.util.ArrayList points  
  • Constructor Summary

    Constructors
    Constructor Description
    Polygon()  
  • Method Summary

    Modifier and Type Method Description
    void BuildEdges()  
    Vector2 Center()  
    void Offset​(float float1, float float2)  
    void Offset​(Vector2 vector2)  
    void Set​(float float1, float float2, float float3, float float4)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • points

      public java.util.ArrayList points
    • edges

      public java.util.ArrayList edges
  • Constructor Details

    • Polygon

      public Polygon()
  • Method Details

    • Set

      public void Set​(float float1, float float2, float float3, float float4)
    • Center

      public Vector2 Center()
    • BuildEdges

      public void BuildEdges()
    • Offset

      public void Offset​(float float1, float float2)
    • Offset

      public void Offset​(Vector2 vector2)