Skip to content

Commit

Permalink
minor simplification of MidPoint method
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeremy Tammik committed Sep 9, 2015
1 parent 20ce466 commit fd988c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion BuildingCoder/BuildingCoder/Util.cs
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ public static double Max( double[] a )
/// </summary>
public static XYZ Midpoint( XYZ p, XYZ q )
{
return p + 0.5 * ( q - p );
return 0.5 * ( p + q );
}

/// <summary>
Expand Down

0 comments on commit fd988c2

Please sign in to comment.