public void TestPatternPlanarMapping3D() { (double u, double v)uv; uv = TextureMap.PlanarMap(new Point(0.25, 0, 0.5)); Assert.AreEqual(uv, (0.25, 0.5)); uv = TextureMap.PlanarMap(new Point(0.25, 0, -0.25)); Assert.AreEqual(uv, (0.25, 0.75)); uv = TextureMap.PlanarMap(new Point(0.25, 0.5, -0.25)); Assert.AreEqual(uv, (0.25, 0.75)); uv = TextureMap.PlanarMap(new Point(1.25, 0, 0.5)); Assert.AreEqual(uv, (0.25, 0.5)); uv = TextureMap.PlanarMap(new Point(0.25, 0, -1.75)); Assert.AreEqual(uv, (0.25, 0.25)); uv = TextureMap.PlanarMap(new Point(1, 0, -1)); Assert.AreEqual(uv, (0.0, 0.0)); uv = TextureMap.PlanarMap(new Point(0, 0, 0)); Assert.AreEqual(uv, (0.0, 0.0)); }