Class GeometryHelper
Inheritance
System.Object
GeometryHelper
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: FellowOakDicom.Imaging.Mathematics
Assembly: fo-dicom.core.dll
Syntax
public static class GeometryHelper
Methods
GetBoundingBox(FrameGeometry)
Finds the bounding box of the geometry by finding the bounding box of the 4 corners
Declaration
public static (Point3D min, Point3D max) GetBoundingBox(this FrameGeometry geometry)
Parameters
Type | Name | Description |
---|---|---|
FrameGeometry | geometry |
Returns
Type | Description |
---|---|
System.ValueTuple<Point3D, Point3D> |
GetBoundingBox(IEnumerable<Point3D>)
Finds the bounding box of a list of points in space.
Declaration
public static (Point3D min, Point3D max) GetBoundingBox(this IEnumerable<Point3D> points)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<Point3D> | points |
Returns
Type | Description |
---|---|
System.ValueTuple<Point3D, Point3D> |
Min(Double[])
Returns the minimal value of all the values
Declaration
public static double Min(params double[] values)
Parameters
Type | Name | Description |
---|---|---|
System.Double[] | values | A list of values |
Returns
Type | Description |
---|---|
System.Double |