HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
hi::v1::circle Class Reference

#include <hikogui/geometry/circle.hpp>

Public Types

using array_type = f32x4

Public Member Functions

constexpr circle (circle const &other) noexcept=default
constexpr circle (circle &&other) noexcept=default
constexpr circle & operator= (circle const &other) noexcept=default
constexpr circle & operator= (circle &&other) noexcept=default
constexpr circle (f32x4 v) noexcept
constexpr operator f32x4 () const noexcept
constexpr circle (point3 point, float radius) noexcept
constexpr circle (float radius) noexcept
constexpr circle (aarectangle square) noexcept
constexpr bool empty () const noexcept
 operator bool () const noexcept
constexpr float radius () const noexcept
constexpr float diameter () const noexcept
constexpr point3 center () const noexcept

Friends

constexpr friend circle operator+ (circle const &lhs, float rhs) noexcept
constexpr friend circle operator- (circle const &lhs, float rhs) noexcept
constexpr friend circle operator* (circle const &lhs, float rhs) noexcept
constexpr friend point3 midpoint (circle const &rhs) noexcept
constexpr friend aarectangle bounding_rectangle (circle const &rhs) noexcept
constexpr circle align (aarectangle haystack, circle needle, alignment alignment) noexcept
 Align a rectangle within another rectangle.

Detailed Description

A type defining a 2D circle.

◆ align

circle align ( aarectangle haystack,
circle needle,
alignment alignment )
friend

Align a rectangle within another rectangle.

Parameters
haystackThe outside rectangle
needleThe circle to align into the rectangle.
alignmentHow the inside circle should be aligned.
Returns
The needle circle repositioned and aligned inside the haystack.

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