Exemple #1
0
        public override int GetIndex(params int[] coords)
        {
            var base_coords = ProjectCoords(coords, Slices);

            return(OriginalShape.GetIndex(base_coords));
        }
Exemple #2
0
 public Normal3 SurfaceNormal(Position3 position) => OriginalShape.SurfaceNormal(position);
Exemple #3
0
 public Normal3 OutwardsDirection(Position3 position) => OriginalShape.OutwardsDirection(position);
Exemple #4
0
 public Position2 UVPosition(Position3 position) => OriginalShape.UVPosition(position);
Exemple #5
0
 public Position3 SurfacePosition(Random random) => OriginalShape.SurfacePosition(random);
Exemple #6
0
 public bool OnSurface(Position3 position, float epsilon = 0.0001F) => OriginalShape.OnSurface(position, epsilon);
Exemple #7
0
 public float DistanceToSurface(Position3 position) => OriginalShape.DistanceToSurface(position);
Exemple #8
0
 public IEnumerable <Position1> IntersectDistances(IRay ray)
 {
     return((BoundingBox as IIntersectable).Intersects(ray) ? OriginalShape.IntersectDistances(ray) : Enumerable.Empty <Position1>());
 }