Uses of Class
edu.mit.sketch.geom.Point

Packages that use Point
edu.mit.sketch.geom   
edu.mit.sketch.grammar.me   
edu.mit.sketch.toolkit   
edu.mit.sketch.ui   
edu.mit.sketch.util   
 

Uses of Point in edu.mit.sketch.geom
 

Subclasses of Point in edu.mit.sketch.geom
 class Vertex
          This class represents a Vertex described by a Point and its certainty.
 

Methods in edu.mit.sketch.geom that return Point
 Point Rectangle.getCenter()
          Returns the center of this rectangle.
 Point Line.getIntersection(Line line)
          Returns the intersection of the two infinite length lines described by this line and the argument.
 Point GeneralPath.getStartPosition()
          Return the beginning the position.
 Point Polygon.pointAt(int i)
          Returns the ith point in this Polygon
 

Methods in edu.mit.sketch.geom with parameters of type Point
 boolean Rectangle.pointIsOn(Point point, int radius)
          Returns true if the point is within +-radius distance from the curve defining the object.
 boolean Rectangle.pointIsOnOriginal(Point p, int radius)
          Returns true if the point is within +-radius distance from the original curve defining the object.
 void Rectangle.rotateAbout(Point p, double theta)
          Rotates the rectangle about the point p theta radians CCW.
 boolean Line.pointIsOn(Point point, int radius)
          Returns true if the point is within +-radius distance from the curve defining the object.
 boolean Line.pointIsOnOriginal(Point p, int radius)
          Returns true if the point is within +-radius distance from the original curve defining the object.
 double Line.getLSQError(Point[] points, Range range)
          Returns the lsq error.
 void XPositionTree.addPoint(Point point)
          Add a point
 boolean GeneralPath.pointIsOn(Point point, int radius)
          Returns true if the point is within +-radius distance from the curve defining the object.
 boolean GeneralPath.pointIsOnOriginal(Point p, int radius)
          Returns true if the point is within +-radius distance from the original curve defining the object.
 boolean Point.pointIsOn(Point point, int radius)
          Returns true if the point is within +-radius distance from this point.
 boolean Point.pointIsOnOriginal(Point p, int radius)
          Returns true if the point is within +-radius distance from the original curve defining the object.
 double Point.distance(Point p)
          Return distance from this point to input.
static double GeometryUtil.distance(Point p1, Point p2)
          Return distnace |p1-p2|
static double GeometryUtil.cosTheoremAngle(Point a, Point b, Point c)
          Return angle between |AB| and |BC|
static double GeometryUtil.ptSegDist(Point p1, Point p2, Point p)
          A different version of ptSegDist
static double GeometryUtil.ptSegDistSq(Point p1, Point p2, Point p)
          A different version of ptSegDistSq
static int GeometryUtil.relativeCCW(Point x1, Point x2, Point p)
          A different version of relativeCCW
static double GeometryUtil.segmentLength(Point[] points, int begin_index, int end_index)
          Return the segment length from index begin_index to end_index in points (end_index included).
 boolean Polygon.pointIsOn(Point p, int radius)
          Returns true if the point is within +-radius distance from the curve defining the object.
 boolean Polygon.pointIsOnOriginal(Point p, int radius)
          Returns true if the point is within +-radius distance from the original curve defining the object.
 int Polygon.closestNeighborIndex(Point p)
          Returns the index of the vertices that is closest to point p.
 void Polygon.drawAngleAt(int i, Point reference_point)
          Draws an arc (angle) on the ith vertex (start from 0) using the current graphics context.
 boolean Translatable.pointIsOn(Point p, int radius)
          Returns true if the point is within +-radius distance from the curve defining the object.
 boolean Translatable.pointIsOnOriginal(Point p, int radius)
          Returns true if the point is within +-radius distance from the original curve defining the object.
 boolean Ellipse.pointIsOn(Point p, int radius)
          Returns true if the point is within +-radius distance from the curve defining the object.
 boolean Ellipse.pointIsOnOriginal(Point p, int radius)
          Returns true if the point is within +-radius distance from the original curve defining the object.
 void SpatialDatabase.addPoint(Point point)
          Add a point
 

Constructors in edu.mit.sketch.geom with parameters of type Point
Rectangle(Point upper_left_point, Dimension dimension)
          The constructor.
Rectangle(Point upper_left_point, Dimension dimension, double angle)
          The constructor.
Rectangle(double x, double y, Point width_vector, double height)
          The constructor.
Line(Point p, Point q)
          The constructor.
Polygon(Point[] points)
          The constructor.
Ellipse(Point upper_left, int width, int height)
          The constructor.
Ellipse(Point upper_left, Dimension d)
          The constructor.
 

Uses of Point in edu.mit.sketch.grammar.me
 

Methods in edu.mit.sketch.grammar.me with parameters of type Point
 boolean Shade.pointIsOn(Point point, int radius)
          Returns true if the point is within +-radius distance from the curve defining the object.
 boolean Motor.pointIsOn(Point p, int radius)
          Returns true if the point is within +-radius distance from the curve defining the object.
 boolean Motor.pointIsOnOriginal(Point p, int radius)
          Returns true if the point is within +-radius distance from the original curve defining the object.
 boolean Pin.pointIsOn(Point p, int radius)
          Returns true if the point is within +-radius distance from the curve defining the object.
 boolean Pin.pointIsOnOriginal(Point p, int radius)
          Returns true if the point is within +-radius distance from the original curve defining the object.
 boolean Cross.pointIsOn(Point p, int radius)
          Returns true if the point is within +-radius distance from the curve defining the object.
 boolean Cross.pointIsOnOriginal(Point p, int radius)
          Returns true if the point is within +-radius distance from the original curve defining the object.
 boolean Ground.pointIsOn(Point p, int radius)
          Returns true if the point is within +-radius distance from the curve defining the object.
 boolean Ground.pointIsOnOriginal(Point p, int radius)
          Returns true if the point is within +-radius distance from the original curve defining the object.
 

Uses of Point in edu.mit.sketch.toolkit
 

Fields in edu.mit.sketch.toolkit declared as Point
 Point StrokeData.center
           
 

Methods in edu.mit.sketch.toolkit that return Point
static Point[] Blackboard.getControlPoints(Vertex v1, Vertex v2, StrokeData data)
          Return the control points to be used for drawing a curve from v1 to v2.
static Point[] Blackboard.getControlPoints(Vertex v1, Vertex v2, StrokeData data, int left_offset, int right_offset)
          Return the control points to be used for drawing a curve from v1 to v2.
 

Methods in edu.mit.sketch.toolkit with parameters of type Point
 double[] StrokeData.deriveDirectionUsingRotationalSWODR(Point[] input, int window_span)
          Derive direction, and return it.
 double[] StrokeData.deriveDirectionViaSWODR(Point[] input, int twice_window_size)
          Derive direction, and fill in the d array.
 void StrokeDataReader.addPoint(Point point)
          Add a point.
static Vertex[] Blackboard.decide(Vertex[] speed_fit, Vertex[] direction_fit, Point[] points, StrokeData data)
          a and b are two possible polygon matches for points.
static Vertex[] Blackboard.getCurvatureFitOld(Point[] points, Vertex[] vertices, double scale)
          Returns a curvature fit.
static Vertex[] Blackboard.getCurvatureFit(Point[] points, Vertex[] vertices, double scale)
          Returns a curvature fit.
static Fit[] Blackboard.getHybridFits(Vertex[] speed_fit, Vertex[] direction_fit, Point[] points)
          Computes the hybrid fits from speed_fit and direction_fit
static double Blackboard.leastSquaresForPolygon(Vertex[] vertices, Point[] points)
          calculate the lsq error.
static int[] Blackboard.getPolygonIndices(Point[] output_polygon, Point[] points)
          get the indices of output_polygon in the array points.
static void Blackboard.printPoints(Point[] points, String name)
          Print the points array.
static void Blackboard.printPointsWithIndices(Point[] points, String name, Point[] real_points)
          Print the points assuming with their corresponding indices in real_points.
 void DirectionChangeScaleSpaceViewer.displayBlackboardFit(Image image, Point origin)
          displayFitByIndices
 void DirectionChangeScaleSpaceViewer.displayFitByIndices(int[] indices, Image image, Point origin)
          displayFitByIndices
 void SpeedScaleSpaceViewer.displayFitByIndices(int[] indices, Image image, Point origin)
          displayFitByIndices
 void SpeedScaleSpaceViewer.displayBlackboardFit(Image image, Point origin)
          displayFitByIndices
 void StrokeDataFactory.addPoint(Point point)
          Add a point
 Vector ObjectManager.getTranslatableNeighborObjects(Point p, int r)
          Returns a vector of all the geometric objects "sufficiently close to the point passes, determined by the search radius r.
 Vector ObjectManager.getTranslatableNeighborObjectsOriginal(Point p, int r)
          Returns a vector of all the geometric objects "sufficiently close to the point passes, determined by the search radius r.
 Vector ObjectManager.getNeighborObjects(Point p, int r)
          Returns a vector of all the geometric objects "sufficiently close to the point passes, determined by the search radius r.
 Vector ObjectManager.getNeighborObjectsOriginal(Point p, int r)
          Returns a vector of all the geometric objects "sufficiently close to the point passes, determined by the search radius r.
 

Constructors in edu.mit.sketch.toolkit with parameters of type Point
Fit(Point[] original_points, Vertex[] vertices, double lsq_error)
          The constructor.
StrokeData(Point[] points)
          The constructor.
 

Uses of Point in edu.mit.sketch.ui
 

Fields in edu.mit.sketch.ui declared as Point
 Point[] TabletDataProcessor.line
          Parameters and constants.
 

Methods in edu.mit.sketch.ui with parameters of type Point
 void TabletDataProcessor.addPoint(Point p, long t)
          Add a new point to sdr with t as the time stamp.
 

Uses of Point in edu.mit.sketch.util
 

Methods in edu.mit.sketch.util with parameters of type Point
static double AWTUtil.leastSquaresForPolygon(Vertex[] vertices, Point[] points)
          Calculate the lsq error.
static double AWTUtil.leastSquaresForLine(Line line, Point[] points)
          calculate the lsq error.
static double[] OrthogonalDistanceRegression.deriveDirectionUsingRotationalSWODR(Point[] points, int window_span)
          Derive direction, and fill in the d array.
static double[] OrthogonalDistanceRegression.deriveDirectionUsingRotationalSWODRFast(Point[] points, int window_span)
          Derive direction, and fill in the d array.
static double LinearFit.findAngle(Point[] points)
          Return the angle -- in radians -- that best approximates the slope of the line that best fits the data points.