Skip to content

Instantly share code, notes, and snippets.

@tdhopper
Created January 17, 2013 14:15
Show Gist options
  • Select an option

  • Save tdhopper/4556190 to your computer and use it in GitHub Desktop.

Select an option

Save tdhopper/4556190 to your computer and use it in GitHub Desktop.
for (int i = 0; i <= numPartitions; i++)
{
Coordinate newCoord = IdealizedValleyFillCTL.ShiftPointAlongLine(
seg.P0,
(seg.P1.Y - seg.P0.Y) / (seg.P1.X - seg.P0.X),
seg.Length / numPartitions * i,
direction); if (i == numPartitions)
yield return newCoord;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment