getEdgeVector method

void getEdgeVector(
  1. int edgeIndex,
  2. Vec3 vectorStore
)

Get a vector along an edge.

Implementation

void getEdgeVector(int edgeIndex, Vec3 vectorStore) {
  final va = _getEdgeVectorVa;
  final vb = _getEdgeVectorVb;
  getEdgeVertex(edgeIndex, 0, va);
  getEdgeVertex(edgeIndex, 1, vb);
  vb.vsub(va, vectorStore);
}