Click or drag to resize
AB4D logo

ExtensionsGetCenterPosition Method

Returns center position of a bounding box specified as Rect3D (contains double.NaN values when bounds is empty.

Namespace: Ab3d
Assembly: Ab3d.PowerToys (in Ab3d.PowerToys.dll) Version: 11.2.9104.2045
Syntax
C#
public static Point3D GetCenterPosition(
	this Rect3D bounds
)

Parameters

bounds  Rect3D
bounding box as Rect3D

Return Value

Point3D
center position as Point3D (contains double.NaN values when bounds is empty)

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Rect3D. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also