|
SIV3D_NODISCARD_CXX20 | Line ()=default |
|
constexpr SIV3D_NODISCARD_CXX20 | Line (value_type x0, value_type y0, value_type x1, value_type y1) noexcept |
|
template<class X0 , class Y0 , class X1 , class Y1 , std::enable_if_t< std::conjunction_v< std::is_arithmetic< X0 >, std::is_arithmetic< Y0 >, std::is_arithmetic< X1 >, std::is_arithmetic< Y1 >>> * = nullptr> |
constexpr SIV3D_NODISCARD_CXX20 | Line (X0 x0, Y0 y0, X1 x1, Y1 y1) noexcept |
|
constexpr SIV3D_NODISCARD_CXX20 | Line (position_type p0, value_type x1, value_type y1) noexcept |
|
template<class X1 , class Y1 , std::enable_if_t< std::conjunction_v< std::is_arithmetic< X1 >, std::is_arithmetic< Y1 >>> * = nullptr> |
constexpr SIV3D_NODISCARD_CXX20 | Line (position_type p0, X1 x1, Y1 y1) noexcept |
|
constexpr SIV3D_NODISCARD_CXX20 | Line (value_type x0, value_type y0, position_type p1) noexcept |
|
template<class X0 , class Y0 , std::enable_if_t< std::conjunction_v< std::is_arithmetic< X0 >, std::is_arithmetic< Y0 >>> * = nullptr> |
constexpr SIV3D_NODISCARD_CXX20 | Line (X0 x0, Y0 y0, position_type p1) noexcept |
|
constexpr SIV3D_NODISCARD_CXX20 | Line (position_type p0, position_type p1) noexcept |
|
constexpr SIV3D_NODISCARD_CXX20 | Line (value_type x0, value_type y0, Arg::direction_< position_type > direction) noexcept |
|
template<class X0 , class Y0 , std::enable_if_t< std::conjunction_v< std::is_arithmetic< X0 >, std::is_arithmetic< Y0 >>> * = nullptr> |
constexpr SIV3D_NODISCARD_CXX20 | Line (X0 x0, Y0 y0, Arg::direction_< position_type > direction) noexcept |
|
constexpr SIV3D_NODISCARD_CXX20 | Line (position_type origin, Arg::direction_< position_type > direction) noexcept |
|
SIV3D_NODISCARD_CXX20 | Line (value_type x0, value_type y0, Arg::angle_< value_type > angle, value_type length) noexcept |
|
SIV3D_NODISCARD_CXX20 | Line (position_type origin, Arg::angle_< value_type > angle, value_type length) noexcept |
|
constexpr Line & | set (value_type x0, value_type y0, value_type x1, value_type y1) noexcept |
|
constexpr Line & | set (position_type p0, value_type x1, value_type y1) noexcept |
|
constexpr Line & | set (value_type x0, value_type y0, position_type p1) noexcept |
|
constexpr Line & | set (position_type p0, position_type p1) noexcept |
|
constexpr Line & | set (const Line &line) noexcept |
|
constexpr Line | movedBy (value_type x, value_type y) const noexcept |
|
constexpr Line | movedBy (position_type v) const noexcept |
|
constexpr Line & | moveBy (value_type x, value_type y) noexcept |
|
constexpr Line & | moveBy (position_type v) noexcept |
|
Line | stretched (value_type length) const noexcept |
|
Line | stretched (value_type lengthBegin, value_type lengthEnd) const noexcept |
|
constexpr position_type | vector () const noexcept |
|
position_type | normal () const noexcept |
|
constexpr Line | reversed () const noexcept |
|
constexpr Line & | reverse () noexcept |
|
constexpr bool | hasLength () const noexcept |
| 線分が長さを持つかを返します。 More...
|
|
value_type | length () const noexcept |
| 線分の長さを返します。 More...
|
|
constexpr value_type | lengthSq () const noexcept |
| 線分の長さの二乗を返します。 More...
|
|
position_type & | p (size_t index) noexcept |
|
const position_type & | p (size_t index) const noexcept |
|
constexpr position_type | point (size_t index) const |
|
constexpr position_type | position (double t) const noexcept |
|
constexpr position_type | center () const noexcept |
| 線分の中心の座標を返します。 More...
|
|
position_type | closest (position_type pos) const noexcept |
|
RectF | boundingRect () const noexcept |
|
Line | extractLine (double distanceFromOrigin, double length) const noexcept |
|
constexpr Line | lerp (const Line &other, double f) const noexcept |
|
size_t | hash () const noexcept |
|
template<class Shape2DType > |
constexpr bool | intersects (const Shape2DType &other) const |
|
template<class Shape2DType > |
Optional< Array< Vec2 > > | intersectsAt (const Shape2DType &other) const |
|
Optional< position_type > | intersectsAt (const Line &other) const |
| 別の線分 other との交点を返します。 More...
|
|
Optional< position_type > | intersectsAtPrecise (const Line &other) const |
| 別の線分 other との交点を返します。intersectsAt() と異なり、両者の順序が異なっても一致する結果を返します。 More...
|
|
const Line & | paint (Image &dst, const Color &color) const |
|
const Line & | paint (Image &dst, int32 thickness, const Color &color) const |
|
const Line & | overwrite (Image &dst, const Color &color, Antialiased antialiased=Antialiased::Yes) const |
|
const Line & | overwrite (Image &dst, int32 thickness, const Color &color, Antialiased antialiased=Antialiased::Yes) const |
|
const Line & | paintArrow (Image &dst, double width, const Vec2 &headSize, const Color &color) const |
|
const Line & | overwriteArrow (Image &dst, double width, const Vec2 &headSize, const Color &color) const |
|
const Line & | paintDoubleHeadedArrow (Image &dst, double width, const Vec2 &headSize, const Color &color) const |
|
const Line & | overwriteDoubleHeadedArrow (Image &dst, double width, const Vec2 &headSize, const Color &color) const |
|
const Line & | draw (const ColorF &color=Palette::White) const |
| 線分を描きます。 More...
|
|
const Line & | draw (const ColorF &colorBegin, const ColorF &colorEnd) const |
| 線分を描きます。 More...
|
|
const Line & | draw (double thickness, const ColorF &color=Palette::White) const |
| 線分を描きます。 More...
|
|
const Line & | draw (double thickness, const ColorF &colorBegin, const ColorF &colorEnd) const |
| 線分を描きます。 More...
|
|
const Line & | draw (const LineStyle &style, double thickness, const ColorF &color=Palette::White) const |
| 線分を描きます。 More...
|
|
const Line & | draw (const LineStyle &style, double thickness, const ColorF &colorBegin, const ColorF &colorEnd) const |
| 線分を描きます。 More...
|
|
const Line & | drawArrow (double width=1.0, const SizeF &headSize=SizeF{ 5.0, 5.0 }, const ColorF &color=Palette::White) const |
| 線分をもとに矢印を描きます。 More...
|
|
const Line & | drawDoubleHeadedArrow (double width=1.0, const SizeF &headSize=SizeF{ 5.0, 5.0 }, const ColorF &color=Palette::White) const |
| 線分をもとに両方向矢印を描きます。 More...
|
|