示例#1
0
        public Vector3i Get(int k)
        {
            Vector3 result = new Vector3();

            result[IdxMin]    = (int)Center[IdxMin] + k;
            result[IdxOther1] = (int)Center[IdxOther1] + Other1 * k;
            result[IdxOther2] = (int)Center[IdxOther2] + Other2 * k;
            return(Vectors.ToInt(result));
        }
示例#2
0
文件: Geo3D.cs 项目: Zipcore/7Dmods
    // <property name="FilterTags" value="fbuilding,fwood,fconstruction,fframes"/>

	public static Vector3 Surface(Vector3 start, int iniy = -1, Func<Block,bool> _IsGround = null) {
		return Vectors.ToFloat(Surface(Vectors.ToInt(start), iniy, _IsGround));
	}