Table of Contents

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

geometry FrameGeometry

Returns

(Point3<decimal> min, Point3<decimal> max)

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

points IEnumerable<Point3<T>>

Returns

(Point3<T> min, Point3<T> max)

Type Parameters

T

Min(params double[])

Returns the minimal value of all the values

public static double Min(params double[] values)

Parameters

values double[]

A list of values

Returns

double