From 128b1a423f1029fc6c5e6d59ff1f2e626b13b303 Mon Sep 17 00:00:00 2001 From: "tomasz.wlostowski@cern.ch" Date: Fri, 13 Sep 2013 15:25:03 +0200 Subject: [PATCH] SEG: added SquaredLength() method --- include/geometry/seg.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/geometry/seg.h b/include/geometry/seg.h index 9989c76be7..bb215aa05f 100644 --- a/include/geometry/seg.h +++ b/include/geometry/seg.h @@ -267,6 +267,12 @@ class SEG { { return (a - b).EuclideanNorm(); } + + ecoord SquaredLength() const + { + return (a - b).SquaredEuclideanNorm(); + } + /** * Function Index()