Open 3D Engine AzToolsFramework API Reference 23.10.0
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
AzToolsFramework::MidpointCalculator Class Reference

#include <EditorSelectionUtil.h>

Public Member Functions

 MidpointCalculator ()=default
 Default constructed with min and max initialized to opposites.
 
void AddPosition (const AZ::Vector3 &position)
 Call this for all positions you want to be considered.
 
AZ::Vector3 CalculateMidpoint () const
 Once all positions have been added, call this to return the midpoint.
 

Detailed Description

A utility to return the center of several points. Take several positions and store the min and max of each in turn - when all points have been added return the center/midpoint.


The documentation for this class was generated from the following file: