getBoundaryPoint method
Implementation
Vector3 getBoundaryPoint(Vector3 direction) {
var allPoints = Array(
values: getPointsDefiningBoundary().map((pt) => pt.toList()).toList());
var values = allPoints
.matMul(direction.toArray(row: true))
.values
.map((line) => line.first)
.toList();
var index = argmax(values);
return getAllPoints()[index];
}