From fd988c24ea40ec650169d243b11f6918db02e817 Mon Sep 17 00:00:00 2001 From: Jeremy Tammik Date: Wed, 9 Sep 2015 16:07:54 +0200 Subject: [PATCH] minor simplification of MidPoint method --- BuildingCoder/BuildingCoder/Util.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BuildingCoder/BuildingCoder/Util.cs b/BuildingCoder/BuildingCoder/Util.cs index 679a25f9..20b57edd 100644 --- a/BuildingCoder/BuildingCoder/Util.cs +++ b/BuildingCoder/BuildingCoder/Util.cs @@ -236,7 +236,7 @@ public static double Max( double[] a ) /// public static XYZ Midpoint( XYZ p, XYZ q ) { - return p + 0.5 * ( q - p ); + return 0.5 * ( p + q ); } ///