椭圆类 更多...
#include <Ellipse.hpp>
Public 成员函数 | |
| constexpr | Ellipse (const Point< T > ¢er, T rx, T ry) |
| 构造函数 | |
| constexpr | Ellipse (const Rect< T > &rect) |
| 构造函数 | |
| constexpr auto | area () const |
| 椭圆的面积 | |
| constexpr Point< T > | center () const |
| 椭圆的圆心 | |
| constexpr T | height () const |
| 椭圆的高度 | |
| template<typename U > requires std::is_arithmetic_v<U> | |
| constexpr | operator Ellipse< U > () const |
| 类型转换函数 | |
| constexpr bool | operator!= (const Ellipse< T > &other) const |
| 判断两个椭圆是否不同 | |
| constexpr bool | operator== (const Ellipse< T > &other) const |
| 判断两个椭圆是否相同 | |
| constexpr const Rect< T > & | rect () const |
| 椭圆的外接矩形 | |
| constexpr T | rx () const |
| 椭圆的水平半径 | |
| constexpr T | ry () const |
| 椭圆的竖直半径 | |
| constexpr T | width () const |
| 椭圆的宽度 | |
友元 | |
| std::ostream & | operator<< (std::ostream &os, const Ellipse< T > &elliptic) |
| 流操作运算符 | |
椭圆类
| T | 数值类型, 要求为算术类型 |
|
inlineconstexpr |
构造函数
| rect | 椭圆的外接矩形 |
|
inlineconstexpr |
构造函数
| center | 椭圆的中心点 |
| rx | 椭圆的水平半径 |
| ry | 椭圆的竖直半径 |
|
inlineconstexpr |
椭圆的面积
|
inlineconstexpr |
椭圆的圆心
|
inlineconstexpr |
椭圆的高度
|
inlineconstexpr |
类型转换函数
| U | 目标类型 |
|
inlineconstexpr |
判断两个椭圆是否不同
| other | 另一个椭圆 |
|
inlineconstexpr |
判断两个椭圆是否相同
| other | 另一个椭圆 |
|
inlineconstexpr |
椭圆的外接矩形
|
inlineconstexpr |
椭圆的水平半径
|
inlineconstexpr |
椭圆的竖直半径
|
inlineconstexpr |
椭圆的宽度