From dca26b71f4c2120b89e96c71514534a2d2f26c24 Mon Sep 17 00:00:00 2001 From: reaperrr Date: Wed, 24 Feb 2016 23:57:02 +0100 Subject: [PATCH] Add VerticalLength and VerticalLengthSquared For possible future use. --- OpenRA.Game/WVec.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/OpenRA.Game/WVec.cs b/OpenRA.Game/WVec.cs index 068845bf37..50c306fd29 100644 --- a/OpenRA.Game/WVec.cs +++ b/OpenRA.Game/WVec.cs @@ -41,6 +41,8 @@ namespace OpenRA public int Length { get { return (int)Exts.ISqrt(LengthSquared); } } public long HorizontalLengthSquared { get { return (long)X * X + (long)Y * Y; } } public int HorizontalLength { get { return (int)Exts.ISqrt(HorizontalLengthSquared); } } + public long VerticalLengthSquared { get { return (long)Z * Z; } } + public int VerticalLength { get { return (int)Exts.ISqrt(VerticalLengthSquared); } } public WVec Rotate(WRot rot) {