Files
simple-makes-complex/docs/docs/modules/MapGen.Triangulation.Edge.md

2.3 KiB

global MapGen.Triangulation.Edge


methods


Edge.new


function Edge.new(
  p1: MapGen.Peak {
    id = number,
    getPeakPos = function,
    getColor = function,
    getGroups = function,
    new = function,
    toString = function,
    eq = function,
},
  p2: MapGen.Peak {
    id = number,
    getPeakPos = function,
    getColor = function,
    getGroups = function,
    new = function,
    toString = function,
    eq = function,
}
) ->  MapGen.Triangulation.Edge {
    p1 = MapGen.Peak,
    p2 = MapGen.Peak,
    new = function,
    toString = function,
    eq = function,
    same = function,
    length = function,
    getMidPoint = function,
}

Edge.toString


function Edge.toString() ->  string

Returns a string describing the object in a readable form.

Edge.eq


function Edge.eq(other: MapGen.Triangulation.Edge {
    p1 = MapGen.Peak,
    p2 = MapGen.Peak,
    new = function,
    toString = function,
    eq = function,
    same = function,
    length = function,
    getMidPoint = function,
}) ->  boolean

Returns true if the edges are equivalent.

Edge.same


function Edge.same(other: MapGen.Triangulation.Edge {
    p1 = MapGen.Peak,
    p2 = MapGen.Peak,
    new = function,
    toString = function,
    eq = function,
    same = function,
    length = function,
    getMidPoint = function,
}) ->  boolean

Returns true if the edges are similar.

Edge.length


function Edge.length() ->  number

Returns the length of an edge.

Edge.getMidPoint


function Edge.getMidPoint() ->  vector

Returns the vector of the point located in the middle of the edge.

fields


Edge.p1


Edge.p1 : MapGen.Peak {
    id: number,
    getPeakPos: function,
    getColor: function,
    getGroups: function,
    new: function,
    toString: function,
    eq: function,
}

Edge.p2


Edge.p2 : MapGen.Peak {
    id: number,
    getPeakPos: function,
    getColor: function,
    getGroups: function,
    new: function,
    toString: function,
    eq: function,
}