nape.shape.Edge

type
class
Edge class providing internal details of Polygon.

Instance Properties

readonly var length : Float

Length of edge.

readonly var localNormal : nape.geom.Vec2

+ Normal of edge in local coordinates.

readonly var localProjection : Float

Local projection of polygon onto edge axis.

readonly var localVertex1 : nape.geom.Vec2

Reference to first local vertex for edge.

readonly var localVertex2 : nape.geom.Vec2

Reference to second local vertex for edge.

readonly var polygon : Polygon

Reference to Polygon this Edge belongs to.

readonly var worldNormal : nape.geom.Vec2

+ Normal of edge in world coordinates.

readonly var worldProjection : Float

+ World projection of polygon to edge axis.

readonly var worldVertex1 : nape.geom.Vec2

Reference to first world vertex for edge.

readonly var worldVertex2 : nape.geom.Vec2

Reference to second world vertex for edge.