Edge class

Constructors

Edge(Node a, Node b)

Properties

a Node
final
angle double
no setter
b Node
final
distance double
no setter
hashCode int
The hash code for this object.
no setteroverride
rawAngle double
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

calculateAttractionForce({required double k, required double length}) double
Hooke's law calculates the elastic force
calculateAttractionForceDirectionA() → Vector2
Calculate the elastic force direction of node A
calculateAttractionForceDirectionB() → Vector2
Calculate the elastic force direction of node B
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override