class nape.shape.Edge

Available on all platforms

Edge class providing internal details of Polygon.

Instance Fields

var length:Float

Length of edge.

var localNormal:Vec2

Normal of edge in local coordinates. *

* This Vec2 is immutable.

var localProjection:Float

Local projection of polygon onto edge axis.

var localVertex1:Vec2

Reference to first local vertex for edge.

var localVertex2:Vec2

Reference to second local vertex for edge.

var polygon:Polygon

Reference to Polygon this Edge belongs to.

var worldNormal:Vec2

Normal of edge in world coordinates. *

* This Vec2 is immutable, and may be accessed even if the related Polygon * is not part of a Body but queries to its values will result in a debug * build error.

var worldProjection:Float

World projection of polygon to edge axis. *

* This value can only be accessed if related Polygon is part of a Body.

var worldVertex1:Vec2

Reference to first world vertex for edge.

var worldVertex2:Vec2

Reference to second world vertex for edge.

var zpp_inner:ZPP_Edge

@private

function new():Void

@private

function toString():String

@private