All Downloads are FREE. Search and download functionalities are using the official Maven repository.

test.ClosestSegment Maven / Gradle / Ivy

Go to download

Jeddict is an open source Jakarta EE application development platform that accelerates developers productivity and simplifies development tasks of creating complex entity relationship models.

There is a newer version: 6.5.0
Show newest version
/**
 * Copyright 2013-2022 Gaurav Gupta
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */
package test;

import java.awt.geom.Line2D;
import java.awt.geom.Point2D;
import java.util.ArrayList;

/**
 *
 *
 */
public class ClosestSegment {

    private ArrayList areaSegments = new ArrayList();
    private Point2D.Double closestPoint = new Point2D.Double(-1, -1);
    private Point2D.Double bestPoint = null;
    private ArrayList closestPointList = new ArrayList();

    @Override
    public String toString() {
        return "ClosestSegment{" + "areaSegments=" + areaSegments + ", closestPoint=" + closestPoint + ", bestPoint=" + bestPoint + ", closestPointList=" + closestPointList + '}';
    }

    /**
     * @return the areaSegments
     */
    public ArrayList getAreaSegments() {
        return areaSegments;
    }

    /**
     * @param areaSegments the areaSegments to set
     */
    public void setAreaSegments(ArrayList areaSegments) {
        this.areaSegments = areaSegments;
    }

    /**
     * @return the closestPoint
     */
    public Point2D.Double getClosestPoint() {
        return closestPoint;
    }

    /**
     * @param closestPoint the closestPoint to set
     */
    public void setClosestPoint(Point2D.Double closestPoint) {
        this.closestPoint = closestPoint;
    }

    /**
     * @return the bestPoint
     */
    public Point2D.Double getBestPoint() {
        return bestPoint;
    }

    /**
     * @param bestPoint the bestPoint to set
     */
    public void setBestPoint(Point2D.Double bestPoint) {
        this.bestPoint = bestPoint;
    }

    /**
     * @return the closestPointList
     */
    public ArrayList getClosestPointList() {
        return closestPointList;
    }

    /**
     * @param closestPointList the closestPointList to set
     */
    public void setClosestPointList(ArrayList closestPointList) {
        this.closestPointList = closestPointList;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy