Home
last modified time | relevance | path

Searched refs:ISqrt (Results 1 – 11 of 11) sorted by relevance

/dports/games/openra/OpenRA-release-20200503/OpenRA.Game/
H A DExts.cs262 public static int ISqrt(int number, ISqrtRoundMode round = ISqrtRoundMode.Floor) in ISqrt() method in OpenRA.Exts
267 return (int)ISqrt((uint)number, round); in ISqrt()
270 public static uint ISqrt(uint number, ISqrtRoundMode round = ISqrtRoundMode.Floor) in ISqrt() method in OpenRA.Exts
303 public static long ISqrt(long number, ISqrtRoundMode round = ISqrtRoundMode.Floor) in ISqrt() method in OpenRA.Exts
308 return (long)ISqrt((ulong)number, round); in ISqrt()
311 public static ulong ISqrt(ulong number, ISqrtRoundMode round = ISqrtRoundMode.Floor) in ISqrt() method in OpenRA.Exts
H A DWVec.cs41 public int Length { get { return (int)Exts.ISqrt(LengthSquared); } }
43 public int HorizontalLength { get { return (int)Exts.ISqrt(HorizontalLengthSquared); } }
45 public int VerticalLength { get { return (int)Exts.ISqrt(VerticalLengthSquared); } }
H A DCVec.cs46 public int Length { get { return Exts.ISqrt(LengthSquared); } }
/dports/games/openra/OpenRA-release-20200503/OpenRA.Mods.Common/Projectiles/
H A DMissile.cs549 …+ Exts.ISqrt(predAttHght * (2 * loopRadius - predAttHght)))); // Target too close to hit at curren… in IncreaseAltitude()
606 var tarDist = Exts.ISqrt(loopRadius * loopRadius - tarHgt * tarHgt); in HomingInnerTick()
646 var h1 = loopRadius - Exts.ISqrt(d1 * (2 * loopRadius - d1)) - (pos.Z - lastHt); in HomingInnerTick()
649 …desiredVFacing = WAngle.ArcTan(Exts.ISqrt(h1 * (2 * loopRadius - h1)), loopRadius - h1).Angle >> 2; in HomingInnerTick()
/dports/games/openra/OpenRA-release-20200503/OpenRA.Game/Map/
H A DMapGrid.cs136 ts[Exts.ISqrt(i * i + j * j, Exts.ISqrtRoundMode.Ceiling)].Add(new CVec(i, j)); in CreateTilesByDistance()
/dports/games/openra/OpenRA-release-20200503/OpenRA.Mods.Common/Traits/Buildings/
H A DProductionAirdrop.cs68 …startPos = spawn + spawnVec * (Exts.ISqrt((bounds.Height * bounds.Height + bounds.Width * bounds.W… in Produce()
/dports/games/openra/OpenRA-release-20200503/OpenRA.Mods.Common/HitShapes/
H A DPolygon.cs99 return new WDist(Exts.ISqrt(min2 + z * z)); in DistanceFromEdge()
/dports/games/openra/OpenRA-release-20200503/OpenRA.Game/Primitives/
H A Dint2.cs47 public int Length { get { return Exts.ISqrt(LengthSquared); } }
/dports/databases/cayley/cayley-0.7.5-2-gcf576ba/vendor/github.com/cznic/mathutil/
H A Dmathutil.go111 func ISqrt(n uint32) (x uint32) { func
H A Dall_test.go672 x := int64(ISqrt(uint32(n)))
681 x := int64(ISqrt(uint32(n)))
692 x := int64(ISqrt(uint32(n)))
879 ISqrt(n)
/dports/misc/perkeep/perkeep-0.11/vendor/github.com/cznic/mathutil/
H A Dmathutil.go118 func ISqrt(n uint32) (x uint32) { func