uk.ac.leeds.ccg.v3d.geometry.V3D_Intersection Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ccg-v3d Show documentation
Show all versions of ccg-v3d Show documentation
A Java Library for handling 3D spatial vector data.
/*
* Copyright 2020 Andy Turner, University of Leeds.
*
* 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 uk.ac.leeds.ccg.v3d.geometry;
import java.math.RoundingMode;
/**
* V3D_FiniteGeometry
*
* @author Andy Turner
* @version 1.0
*/
public interface V3D_Intersection {
/**
* Identify if the geometry is intersected by point {@code p}.
*
* @param p The point to test for intersection with.
* @param oom The Order of Magnitude for the precision.
* @param rm The RoundingMode if rounding is needed.
* @return {@code true} iff the geometry is intersected by {@code p}.
*/
public abstract boolean isIntersectedBy(V3D_Point p, int oom,
RoundingMode rm);
/**
* Get the intersection between the geometry and the line {@code l}.
*
* @param l The line to intersect with.
* @param oom The Order of Magnitude for the precision.
* @param rm The RoundingMode if rounding is needed.
* @return The V3D_Geometry.
*/
public abstract V3D_Geometry getIntersection(V3D_Line l, int oom,
RoundingMode rm);
/**
* Get the intersection between the geometry and the line segment
* {@code l}.
*
* @param l The line segment to intersect with.
* @param oom The Order of Magnitude for the precision.
* @param rm The RoundingMode if rounding is needed.
* @return The V3D_Geometry.
*/
public abstract V3D_FiniteGeometry getIntersection(V3D_LineSegment l,
int oom, RoundingMode rm);
/**
* Get the intersection between the geometry and the plane {@code p}.
*
* @param pl The plane to intersect with.
* @param oom The Order of Magnitude for the precision.
* @param rm The RoundingMode if rounding is needed.
* @return The V3D_Geometry.
*/
public abstract V3D_Geometry getIntersection(V3D_Plane pl, int oom,
RoundingMode rm);
/**
* Get the intersection between the geometry and the triangle {@code t}.
*
* @param t The triangle to intersect with.
* @param oom The Order of Magnitude for the precision.
* @param rm The RoundingMode if rounding is needed.
* @return The V3D_Geometry.
*/
public abstract V3D_FiniteGeometry getIntersection(V3D_Triangle t, int oom,
RoundingMode rm);
/**
* Get the intersection between the geometry and the tetrahedron {@code t}.
*
* @param t The tetrahedron to intersect with.
* @param oom The Order of Magnitude for the precision.
* @param rm The RoundingMode if rounding is needed.
* @return The V3D_Geometry.
*/
public abstract V3D_FiniteGeometry getIntersection(V3D_Tetrahedron t,
int oom, RoundingMode rm);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy