public void paramInit( Scientrace.Location lens_sphere_location, double lens_sphere_radius, double lens_sphere_radians_min, double lens_sphere_radians_max, Scientrace.UnitVector orientation_from_sphere_center, bool double_convex_ring) { this.sphereLoc = lens_sphere_location; this.sphereRadius = lens_sphere_radius; //Console.WriteLine("Sphere radius: "+sphereRadius); this.radiansMin = lens_sphere_radians_min; this.radiansMax = lens_sphere_radians_max; this.orientation = orientation_from_sphere_center; this.doubleConvexRing = double_convex_ring; if (lens_sphere_radians_min > 0) { this.innerVoid = new InfiniteCylinderBorder(null, null, lens_sphere_location, orientation_from_sphere_center, lens_sphere_radius * Math.Sin(lens_sphere_radians_min) ); this.innerVoid.enclosesInside = false; } this.lensSphere = new Sphere(null, null, lens_sphere_location, lens_sphere_radius); this.initBottom(); }
public void paramInit( Scientrace.Location lens_sphere_location, double lens_sphere_radius, double lens_sphere_radians_min, double lens_sphere_radians_max, Scientrace.UnitVector orientation_from_sphere_center, bool double_convex_ring) { this.sphereLoc = lens_sphere_location; this.sphereRadius = lens_sphere_radius; //Console.WriteLine("Sphere radius: "+sphereRadius); this.radiansMin = lens_sphere_radians_min; this.radiansMax = lens_sphere_radians_max; this.orientation = orientation_from_sphere_center; this.doubleConvexRing = double_convex_ring; if (lens_sphere_radians_min > 0) { this.innerVoid = new InfiniteCylinderBorder(null, null, lens_sphere_location, orientation_from_sphere_center, lens_sphere_radius*Math.Sin(lens_sphere_radians_min) ); this.innerVoid.enclosesInside = false; } this.lensSphere = new Sphere(null, null, lens_sphere_location, lens_sphere_radius); this.initBottom(); }