Beispiel #1
0
        public Eye(CoordD origin, double radius, double theta, double offset, double magnitude)
        {
            this.radius = radius;
            ray         = new Ray(origin.by_angle(theta + offset, radius), theta, magnitude);

            this.offset = offset;
            while (this.offset < 0)
            {
                this.offset += Consts.τ;
            }
            while (this.offset >= Consts.τ)
            {
                this.offset -= Consts.τ;
            }
        }
Beispiel #2
0
 public void move(CoordD pos)
 {
     ray.O = pos.by_angle(ray.θ, radius);
 }
Beispiel #3
0
 public CoordD end_point()
 {
     return(O.by_angle(θ, r));
 }