Edge

nape.shape.Edge (final class)

Edge class providing internal details of Polygon.

Instance Members

@private


nape
polygon: Polygon

Reference to Polygon this Edge belongs to.


nape
localNormal: nape.geom.Vec2

Normal of edge in local coordinates.

This Vec2 is immutable.


nape
worldNormal: nape.geom.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.


nape
length: Float

Length of edge.


nape
localProjection: Float

Local projection of polygon onto edge axis.


nape
worldProjection: Float

World projection of polygon to edge axis.

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


nape
localVertex1: nape.geom.Vec2

Reference to first local vertex for edge.


nape
localVertex2: nape.geom.Vec2

Reference to second local vertex for edge.


nape
worldVertex1: nape.geom.Vec2

Reference to first world vertex for edge.


nape
worldVertex2: nape.geom.Vec2

Reference to second world vertex for edge.


nape
toString(): String

@private

Returns
String

nape
new(): Void

@private

Private Members

Metadata

Name Parameters
:final -