Projects a point to a random projection.

@param pointA
the point to project
@param i
the index of the projection
@return the position of the point
975556
private double project(double[] pointA, int i) {
		assert (this.projections.size() < i &&
				this.projections.get(i).length == pointA.length);
		return Metric.dotProduct(pointA, this.projections.get(i));
	}
734346
public Point getPoint(String id) {
        for (Point point : points)
            if (id.equals(point.getId()))
                return point;
        return null;
    }
1039438
public static CellPosition of(final Point point) {
        ArgUtils.notNull(point, "point");
        return of(point.y, point.x);
    }
1106907
@Pure
	public Point2D<?, ?> predictTargetPosition(Point2D<?, ?> targetPosition, Vector2D<?, ?> targetLinearMotion) {
		return new Point2d(
				targetPosition.getX() + targetLinearMotion.getX() * this.predictionDuration,
				targetPosition.getY() + targetLinearMotion.getY() * this.predictionDuration);
	}
1052452
public Point getPoint(int position) {
        if (position<0 || position>=size()) throw new ArrayIndexOutOfBoundsException("Invalid position: " + position);
        return new Point(coordinates[0][position],coordinates[1][position]);
    }
365646
function( pointA, pointB ) {

	        return { x: pointB.x - pointA.x, y: -( pointB.y - pointA.y ) };
	    }
1322893
private DataPoint getDataPoint(int i) {
    if (i < 0) {
      throw new IndexOutOfBoundsException("negative index: " + i);
    }
    final int saved_i = i;
    final SeekableView it = iterator();
    DataPoint dp = null;
    while (it.hasNext() && i >= 0) {
      dp = it.next();
      i--;
    }
    if (i != -1 || dp == null) {
      throw new IndexOutOfBoundsException("index " + saved_i
          + " too large (it's >= " + size() + ") for " + this);
    }
    return dp;
  }
963100
private void moveToNext(final int i) {
    final HistogramSeekableView it = iterators[i];
    if (it.hasNext()) {
      putDataPoint(i, it.next());
    } else {
      endReached(i);
    }
  }
883367
function( element, point ) {
            element = $.getElement( element );
            var offset = $.getElementOffset( element ),
                size = $.getElementSize( element );
            return point.x >= offset.x && point.x < offset.x + size.x && point.y < offset.y + size.y && point.y >= offset.y;
        }
76998
@Pure
	public Point3d getPointAt(int index) {
		Point3d point = new Point3d();
		point.xProperty = this.coordsProperty[index*3];
		point.yProperty = this.coordsProperty[index*3+1];
		point.zProperty = this.coordsProperty[index*3+2];

		return point;
	}
392118
@Pure
	public Point3f getPointAt(int index) {
		return new Point3f(
				this.coords[index*3],
				this.coords[index*3+1],
				this.coords[index*3+2]);
	}
900984
private Point getFirstDifferent(Point init, boolean color, int dx, int dy) {
    int x = init.getX() + dx;
    int y = init.getY() + dy;

    while (isValid(x, y) && image.get(x, y) == color) {
      x += dx;
      y += dy;
    }

    x -= dx;
    y -= dy;

    while (isValid(x, y) && image.get(x, y) == color) {
      x += dx;
    }
    x -= dx;

    while (isValid(x, y) && image.get(x, y) == color) {
      y += dy;
    }
    y -= dy;

    return new Point(x, y);
  }
560296
public Point toWgs84(Point point) {
        if (projection != null) {
            point = toWgs84.transform(point);
        }
        return point;
    }
40472
public TriangulationPoint pointCW( TriangulationPoint point )
    {
        if( point == points[0] )
        {
            return points[2];
        }
        else if( point == points[1] )
        {
            return points[0];
        }
        else if( point == points[2] )
        {
            return points[1];
        }
        logger.error( "point location error" );
        throw new RuntimeException("[FIXME] point location error");
    }
173261
private Coordinate p( int i, double t ) {
        double px = 0;
        double py = 0;
        for( int j = -2; j <= 1; j++ ) {
            Coordinate coordinate = pts.get(i + j);
            px += b(j, t) * coordinate.x;
            py += b(j, t) * coordinate.y;
        }
        return new Coordinate(px, py);
    }
882168
@Override
    public C setLocation(final Point2D p)
    {
        setX(p.getX());

        setY(p.getY());

        return cast();
    }
409668
@Override
	public Point getPoint(int index) {
		if (index < 0 || index >= m_pointCount)
			throw new IndexOutOfBoundsException();

		_verifyAllStreams();

		Point outPoint = new Point();
		outPoint.assignVertexDescription(m_description);
		if (outPoint.isEmpty())
			outPoint._setToDefault();

		for (int attributeIndex = 0; attributeIndex < m_description
				.getAttributeCount(); attributeIndex++) {
			int semantics = m_description.getSemantics(attributeIndex);
			for (int icomp = 0, ncomp = VertexDescription
					.getComponentCount(semantics); icomp < ncomp; icomp++) {
				double v = m_vertexAttributes[attributeIndex].readAsDbl(ncomp
						* index + icomp);
				outPoint.setAttribute(semantics, icomp, v);
			}
		}
		return outPoint;
	}