shadowScale method
Returns the relative scale of the shortest source-position vector to this edge
Implementation
double shadowScale(Vector position) {
Vector sourcePosition = position - source.point.toVector();
return sourcePosition.dot(toVector()) / pow(weight, 2);
}