예제 #1
0
        public HexCoords LerpTo(HexCoords other, float t)
        {
            const float eX = 1E-6F;
            const float eY = 2E-6F;
            const float eZ = -3E-6F;

            return(Round(
                       NumUtil.Lerp(x + eX, other.x + eX, t),
                       NumUtil.Lerp(y + eY, other.y + eY, t),
                       NumUtil.Lerp(z + eZ, other.z + eZ, t)));
        }