cpp_robotics::Quad
四角形クラス
#include <shape.hpp>
Public Functions
| Name | |
|---|---|
| Quad() =default | |
| constexpr | Quad(const std::array< Vector2d, 4 > & points) | 
| constexpr | Quad(const Vector2d & p0, const Vector2d & p1, const Vector2d & p2, const Vector2d & p3) | 
| void | set(const Vector2d & p0_, const Vector2d & p1_, const Vector2d & p2_, const Vector2d & p3_) | 
| constexpr bool | has_area() const | 
| constexpr double | area() const | 
| constexpr std::array< Vector2d, 4 > | vertex() const | 
| constexpr std::array< Line, 4 > | outline() const | 
Public Attributes
| Name | |
|---|---|
| Vector2d | p0 | 
| Vector2d | p1 | 
| Vector2d | p2 | 
| Vector2d | p3 | 
Public Functions Documentation
function Quad
Quad() =default
function Quad
inline constexpr Quad(
    const std::array< Vector2d, 4 > & points
)
function Quad
inline constexpr Quad(
    const Vector2d & p0,
    const Vector2d & p1,
    const Vector2d & p2,
    const Vector2d & p3
)
function set
inline void set(
    const Vector2d & p0_,
    const Vector2d & p1_,
    const Vector2d & p2_,
    const Vector2d & p3_
)
function has_area
inline constexpr bool has_area() const
function area
inline constexpr double area() const
function vertex
inline constexpr std::array< Vector2d, 4 > vertex() const
function outline
inline constexpr std::array< Line, 4 > outline() const
Public Attributes Documentation
variable p0
Vector2d p0;
variable p1
Vector2d p1;
variable p2
Vector2d p2;
variable p3
Vector2d p3;
Updated on 2024-05-28 at 06:55:39 +0000