Add VerticalLength and VerticalLengthSquared
For possible future use.
This commit is contained in:
@@ -41,6 +41,8 @@ namespace OpenRA
|
|||||||
public int Length { get { return (int)Exts.ISqrt(LengthSquared); } }
|
public int Length { get { return (int)Exts.ISqrt(LengthSquared); } }
|
||||||
public long HorizontalLengthSquared { get { return (long)X * X + (long)Y * Y; } }
|
public long HorizontalLengthSquared { get { return (long)X * X + (long)Y * Y; } }
|
||||||
public int HorizontalLength { get { return (int)Exts.ISqrt(HorizontalLengthSquared); } }
|
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)
|
public WVec Rotate(WRot rot)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user