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