cpp_robotics::Line
直線クラス
#include <shape.hpp>
Public Functions
Name | |
---|---|
Line() =default | |
constexpr | Line(const Vector2d & p0, const Vector2d & p1) |
void | set(const Vector2d & p0_, const Vector2d & p1_) |
constexpr double | length() const |
constexpr double | angle() const |
constexpr Vector2d | lerp(const double t) const |
Public Attributes
Name | |
---|---|
Vector2d | p0 |
Vector2d | p1 |
Public Functions Documentation
function Line
Line() =default
function Line
inline constexpr Line(
const Vector2d & p0,
const Vector2d & p1
)
function set
inline void set(
const Vector2d & p0_,
const Vector2d & p1_
)
function length
inline constexpr double length() const
function angle
inline constexpr double angle() const
function lerp
inline constexpr Vector2d lerp(
const double t
) const
Public Attributes Documentation
variable p0
Vector2d p0;
variable p1
Vector2d p1;
Updated on 2024-05-28 at 06:55:39 +0000