math.geom2d.line

Class Ray2D

    • Constructor Detail

      • Ray2D

        public Ray2D()
        Empty constructor for Ray2D. Default is ray starting at origin, and having a slope of 1*dx and 0*dy.
      • Ray2D

        public Ray2D(Point2D point1,
             Point2D point2)
        Creates a new Ray2D, originating from point1<\code>, and going in the direction of point2<\code>.
      • Ray2D

        public Ray2D(double x1,
             double y1,
             double dx,
             double dy)
        Creates a new Ray2D, originating from point (x1,y1)<\code>, and going in the direction defined by vector (dx, dy)<\code>.
      • Ray2D

        public Ray2D(Point2D point,
             double dx,
             double dy)
        Creates a new Ray2D, originating from point point<\code>, and going in the direction defined by vector (dx,dy)<\code>.
      • Ray2D

        public Ray2D(Point2D point,
             Vector2D vector)
        Creates a new Ray2D, originating from point point<\code>, and going in the direction specified by vector<\code>.
      • Ray2D

        public Ray2D(Point2D point,
             double angle)
        Creates a new Ray2D, originating from point point<\code>, and going in the direction specified by angle<\code> (in radians).
      • Ray2D

        public Ray2D(double x,
             double y,
             double angle)
        Creates a new Ray2D, originating from point (x, y)<\code>, and going in the direction specified by angle<\code> (in radians).
      • Ray2D

        public Ray2D(LinearShape2D line)
        Define a new Ray, with same characteristics as given object.

Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.