Class GeometryHelper
- Namespace
- FellowOakDicom.Imaging.Mathematics
- Assembly
- fo-dicom.core.dll
public static class GeometryHelper
- Inheritance
-
GeometryHelper
- Inherited Members
Methods
GetBoundingBox(FrameGeometry)
Finds the bounding box of the geometry by finding the bounding box of the 4 corners
public static (Point3<decimal> min, Point3<decimal> max) GetBoundingBox(this FrameGeometry geometry)
Parameters
geometryFrameGeometry
Returns
GetBoundingBox<T>(IEnumerable<Point3<T>>)
Finds the bounding box of a list of points in space.
public static (Point3<T> min, Point3<T> max) GetBoundingBox<T>(this IEnumerable<Point3<T>> points) where T : INumber<T>
Parameters
pointsIEnumerable<Point3<T>>
Returns
Type Parameters
T
Min(params double[])
Returns the minimal value of all the values
public static double Min(params double[] values)
Parameters
valuesdouble[]A list of values