コード例 #1
0
        public Rot4 GetClosestEdge(IntVec3 c)
        {
            int num  = Mathf.Abs(c.x - this.minX);
            int num2 = Mathf.Abs(c.x - this.maxX);
            int num3 = Mathf.Abs(c.z - this.maxZ);
            int num4 = Mathf.Abs(c.z - this.minZ);

            return(GenMath.MinBy <Rot4>(Rot4.West, (float)num, Rot4.East, (float)num2, Rot4.North, (float)num3, Rot4.South, (float)num4));
        }
コード例 #2
0
        public Rot4 GetClosestEdge(IntVec3 c)
        {
            int num  = Mathf.Abs(c.x - minX);
            int num2 = Mathf.Abs(c.x - maxX);
            int num3 = Mathf.Abs(c.z - maxZ);
            int num4 = Mathf.Abs(c.z - minZ);

            return(GenMath.MinBy(Rot4.West, num, Rot4.East, num2, Rot4.North, num3, Rot4.South, num4));
        }