![]() |
OpenSiv3D
v0.6.5
C++20 framework for creative coding
|
点の集合(とそれをつないで表現される、連続する線分) More...
#include <LineString.hpp>
Public Types | |
using | base_type = Array< Vec2 > |
using | allocator_type = base_type::allocator_type |
using | value_type = base_type::value_type |
using | size_type = base_type::size_type |
using | difference_type = base_type::difference_type |
using | pointer = base_type::pointer |
using | const_pointer = base_type::const_pointer |
using | reference = base_type::reference |
using | const_reference = base_type::const_reference |
using | iterator = base_type::iterator |
using | const_iterator = base_type::const_iterator |
using | reverse_iterator = base_type::reverse_iterator |
using | const_reverse_iterator = base_type::const_reverse_iterator |
Public Member Functions | |
SIV3D_NODISCARD_CXX20 | LineString ()=default |
SIV3D_NODISCARD_CXX20 | LineString (const allocator_type &alloc) noexcept |
SIV3D_NODISCARD_CXX20 | LineString (size_t count, const value_type &value, const allocator_type &alloc=allocator_type{}) |
SIV3D_NODISCARD_CXX20 | LineString (size_t count, const allocator_type &alloc=allocator_type{}) |
template<class Iterator > | |
LineString (Iterator first, Iterator last, const allocator_type &alloc=allocator_type{}) | |
SIV3D_NODISCARD_CXX20 | LineString (const LineString &lines) |
SIV3D_NODISCARD_CXX20 | LineString (const LineString &lines, const allocator_type &alloc) |
SIV3D_NODISCARD_CXX20 | LineString (LineString &&lines) noexcept |
SIV3D_NODISCARD_CXX20 | LineString (std::initializer_list< value_type > init, const allocator_type &alloc=allocator_type{}) |
SIV3D_NODISCARD_CXX20 | LineString (const Array< Point > &points) |
SIV3D_NODISCARD_CXX20 | LineString (const Array< Vec2 > &points) |
SIV3D_NODISCARD_CXX20 | LineString (Array< Vec2 > &&points) noexcept |
SIV3D_NODISCARD_CXX20 | LineString (Arg::reserve_< size_type > size) |
LineString & | operator= (const Array< Point > &other) |
LineString & | operator= (const Array< Vec2 > &other) |
LineString & | operator= (Array< Vec2 > &&other) noexcept |
LineString & | operator= (const LineString &other) |
LineString & | operator= (LineString &&other) noexcept |
const Array< value_type > & | asArray () const noexcept |
operator const Array< value_type > & () const noexcept | |
template<class Iterator > | |
void | assign (Iterator first, Iterator last) |
void | assign (size_type n, const value_type &value) |
void | assign (std::initializer_list< value_type > il) |
void | assign (const Array< Point > &other) |
void | assign (const Array< Vec2 > &other) |
void | assign (Array< Vec2 > &&other) noexcept |
void | assign (const LineString &other) |
void | assign (LineString &&other) noexcept |
allocator_type | get_allocator () const noexcept |
value_type & | at (size_t index) & |
const value_type & | at (size_t index) const & |
value_type | at (size_t index) && |
value_type & | operator[] (size_t index) &noexcept |
const value_type & | operator[] (size_t index) const &noexcept |
value_type | operator[] (size_t index) &&noexcept |
void | push_front (const value_type &value) |
void | push_back (const value_type &value) |
void | pop_front () |
void | pop_front_N (size_t n) |
void | pop_back () noexcept |
void | pop_back_N (size_t n) |
LineString & | operator<< (const value_type &value) |
template<class... Args> | |
iterator | emplace (const_iterator position, Args &&... args) |
template<class... Args> | |
decltype(auto) | emplace_back (Args &&... args) |
value_type & | front () noexcept |
const value_type & | front () const noexcept |
value_type & | back () noexcept |
const value_type & | back () const noexcept |
void | swap (LineString &other) noexcept |
const value_type * | data () const noexcept |
value_type * | data () noexcept |
iterator | begin () noexcept |
iterator | end () noexcept |
const_iterator | begin () const noexcept |
const_iterator | end () const noexcept |
const_iterator | cbegin () const noexcept |
const_iterator | cend () const noexcept |
reverse_iterator | rbegin () noexcept |
reverse_iterator | rend () noexcept |
const_reverse_iterator | rbegin () const noexcept |
const_reverse_iterator | rend () const noexcept |
const_reverse_iterator | crbegin () const noexcept |
const_reverse_iterator | crend () const noexcept |
bool | empty () const noexcept |
bool | isEmpty () const noexcept |
operator bool () const noexcept | |
size_t | size_bytes () const noexcept |
size_t | size () const noexcept |
size_t | max_size () const noexcept |
void | reserve (size_t newCapacity) |
size_t | capacity () const noexcept |
void | shrink_to_fit () |
void | clear () noexcept |
void | release () |
iterator | insert (const_iterator where, const value_type &value) |
iterator | insert (const_iterator where, size_t count, const value_type &value) |
template<class Iterator > | |
iterator | insert (const_iterator where, Iterator first, Iterator last) |
iterator | insert (const_iterator where, std::initializer_list< value_type > il) |
iterator | erase (const_iterator where) noexcept |
iterator | erase (const_iterator first, const_iterator last) noexcept |
void | resize (size_t newSize) |
void | resize (size_t newSize, const value_type &value) |
template<class Fty = decltype(Identity), std::enable_if_t< std::is_invocable_r_v< bool, Fty, value_type >> * = nullptr> | |
bool | all (Fty f=Identity) const |
template<class Fty = decltype(Identity), std::enable_if_t< std::is_invocable_r_v< bool, Fty, value_type >> * = nullptr> | |
bool | any (Fty f=Identity) const |
value_type & | choice () |
const value_type & | choice () const |
SIV3D_CONCEPT_URBG value_type & | choice (URBG &&rbg) |
const SIV3D_CONCEPT_URBG value_type & | choice (URBG &&rbg) const |
SIV3D_CONCEPT_INTEGRAL LineString | choice (Int n) const |
template<class Size_t , class URBG , std::enable_if_t< std::is_integral_v< Size_t >> * = nullptr, std::enable_if_t< std::conjunction_v< std::is_invocable< URBG & >, std::is_unsigned< std::invoke_result_t< URBG & >>>> * = nullptr> | |
LineString | choice (Size_t n, URBG &&rbg) const |
size_t | count (const value_type &value) const |
template<class Fty , std::enable_if_t< std::is_invocable_r_v< bool, Fty, value_type >> * = nullptr> | |
size_t | count_if (Fty f) const |
LineString & | fill (const value_type &value) |
String | join (StringView sep=U", "_sv, StringView begin=U"{"_sv, StringView end=U"}"_sv) const |
template<class Fty = decltype(Identity), std::enable_if_t< std::is_invocable_r_v< bool, Fty, value_type >> * = nullptr> | |
bool | none (Fty f=Identity) const |
LineString & | append (const Array< value_type > &other) |
LineString & | append (const LineString &other) |
LineString & | remove (const value_type &value) |
LineString & | remove_at (size_t index) |
template<class Fty > | |
LineString & | remove_if (Fty f) |
LineString & | reverse () |
LineString | reversed () const |
連続する線分の向きを反転した新しい LineString を返します。 More... | |
LineString & | shuffle () |
SIV3D_CONCEPT_URBG LineString & | shuffle (URBG &&rbg) |
LineString | slice (size_t index) const |
LineString | slice (size_t index, size_t length) const |
LineString & | unique_consecutive () |
LineString | uniqued_consecutive () const & |
LineString | uniqued_consecutive () && |
size_t | num_points () const noexcept |
LineString を構成する頂点の数を返します。 More... | |
size_t | num_lines (CloseRing closeRing=CloseRing::No) const noexcept |
LineString を構成する線分の数を返します。 More... | |
Line | line (size_t index, CloseRing closeRing=CloseRing::No) const |
LineString を構成する線分を返します。 More... | |
Vec2 | normalAtPoint (size_t index, CloseRing closeRing=CloseRing::No) const |
指定した頂点における進行方向左手の単位ベクトルを返します。 More... | |
Vec2 | normalAtLine (size_t index, CloseRing closeRing=CloseRing::No) const |
指定した線分における進行方向左手の単位ベクトルを返します。 More... | |
LineString | movedBy (double x, double y) const |
LineString | movedBy (Vec2 v) const |
LineString & | moveBy (double x, double y) noexcept |
LineString & | moveBy (Vec2 v) noexcept |
LineString | scaled (double s) const |
LineString | scaled (double sx, double sy) const |
LineString | scaled (Vec2 s) const |
LineString & | scale (double s) |
LineString & | scale (double sx, double sy) |
LineString & | scale (Vec2 s) |
LineString | scaledAt (Vec2 pos, double s) const |
LineString | scaledAt (Vec2 pos, double sx, double sy) const |
LineString | scaledAt (Vec2 pos, Vec2 s) const |
LineString & | scaleAt (Vec2 pos, double s) |
LineString & | scaleAt (Vec2 pos, double sx, double sy) |
LineString & | scaleAt (Vec2 pos, Vec2 s) |
RectF | computeBoundingRect () const noexcept |
LineString | simplified (double maxDistance=2.0, CloseRing closeRing=CloseRing::No) const |
連続する線分を単純化した LineString を返します。 More... | |
LineString | densified (double maxDistance, CloseRing closeRing=CloseRing::No) const |
点と点の間の距離が maxDistance より大きくならないよう、区間ごとに最小回数で均等に分割した結果を返します。 More... | |
LineString | catmullRom (int32 interpolation=24) const |
Catmull-Rom スプライン曲線を返します。 More... | |
LineString | catmullRom (CloseRing closeRing, int32 interpolation=24) const |
Catmull-Rom スプライン曲線を返します。 More... | |
double | calculateLength (CloseRing closeRing=CloseRing::No) const noexcept |
連続する線分全体の長さを返します。 More... | |
Vec2 | calculatePointFromOrigin (double distanceFromOrigin, CloseRing closeRing=CloseRing::No) const |
始点から指定した距離にある、線分上の点を返します More... | |
LineString | extractLineString (double distanceFromOrigin, CloseRing closeRing=CloseRing::No) const |
部分 LineString を返します。 More... | |
LineString | extractLineString (double distanceFromOrigin, double length, CloseRing closeRing=CloseRing::No) const |
部分 LineString を返します。 More... | |
Array< Vec2 > | computeNormals (CloseRing closeRing=CloseRing::No) const |
Polygon | calculateBuffer (double distance, int32 bufferQuality=24) const |
太らせた多角形を作成します。 More... | |
Polygon | calculateBufferClosed (double distance, int32 bufferQuality=24) const |
終点と始点を結んだうえで、太らせた多角形を作成します。 More... | |
Polygon | calculateRoundBuffer (double distance, int32 bufferQuality=24) const |
丸く太らせた多角形を作成します。 More... | |
Polygon | calculateRoundBufferClosed (double distance, int32 bufferQuality=24) const |
終点と始点を結んだうえで、丸く太らせた多角形を作成します。 More... | |
Spline2D | asSpline (CloseRing closeRing=CloseRing::No) const |
template<class Shape2DType > | |
constexpr bool | intersects (const Shape2DType &other) const |
template<class Shape2DType > | |
Optional< Array< Vec2 > > | intersectsAt (const Shape2DType &other) const |
const LineString & | paint (Image &dst, const Color &color) const |
const LineString & | paint (Image &dst, int32 thickness, const Color &color) const |
const LineString & | paintClosed (Image &dst, const Color &color) const |
const LineString & | paintClosed (Image &dst, int32 thickness, const Color &color) const |
const LineString & | overwrite (Image &dst, const Color &color, Antialiased antialiased=Antialiased::Yes) const |
const LineString & | overwrite (Image &dst, int32 thickness, const Color &color, Antialiased antialiased=Antialiased::Yes) const |
const LineString & | overwriteClosed (Image &dst, const Color &color, Antialiased antialiased=Antialiased::Yes) const |
const LineString & | overwriteClosed (Image &dst, int32 thickness, const Color &color, Antialiased antialiased=Antialiased::Yes) const |
const LineString & | draw (const ColorF &color=Palette::White) const |
const LineString & | draw (double thickness, const ColorF &color=Palette::White) const |
連続する線分を描画します。 More... | |
const LineString & | draw (double thickness, const Array< ColorF > &colors) const |
連続する線分を描画します。 More... | |
const LineString & | draw (const LineStyle &style, double thickness, const ColorF &color=Palette::White) const |
const LineString & | drawClosed (const ColorF &color=Palette::White) const |
終点と始点を結んだうえで、連続する線分を描画します。 More... | |
const LineString & | drawClosed (double thickness, const ColorF &color=Palette::White) const |
終点と始点を結んだうえで、連続する線分を描画します。 More... | |
const LineString & | drawClosed (double thickness, const Array< ColorF > &colors) const |
const LineString & | drawClosed (const LineStyle &style, double thickness, const ColorF &color=Palette::White) const |
Friends | |
void | Formatter (FormatData &formatData, const LineString &value) |
点の集合(とそれをつないで表現される、連続する線分)
using s3d::LineString::base_type = Array<Vec2> |
|
default |
|
explicitnoexcept |
SIV3D_NODISCARD_CXX20 s3d::LineString::LineString | ( | size_t | count, |
const value_type & | value, | ||
const allocator_type & | alloc = allocator_type{} |
||
) |
|
explicit |
s3d::LineString::LineString | ( | Iterator | first, |
Iterator | last, | ||
const allocator_type & | alloc = allocator_type{} |
||
) |
SIV3D_NODISCARD_CXX20 s3d::LineString::LineString | ( | const LineString & | lines | ) |
SIV3D_NODISCARD_CXX20 s3d::LineString::LineString | ( | const LineString & | lines, |
const allocator_type & | alloc | ||
) |
|
noexcept |
SIV3D_NODISCARD_CXX20 s3d::LineString::LineString | ( | std::initializer_list< value_type > | init, |
const allocator_type & | alloc = allocator_type{} |
||
) |
|
explicit |
bool s3d::LineString::all | ( | Fty | f = Identity | ) | const |
bool s3d::LineString::any | ( | Fty | f = Identity | ) | const |
LineString& s3d::LineString::append | ( | const Array< value_type > & | other | ) |
LineString& s3d::LineString::append | ( | const LineString & | other | ) |
|
noexcept |
void s3d::LineString::assign | ( | const LineString & | other | ) |
void s3d::LineString::assign | ( | Iterator | first, |
Iterator | last | ||
) |
|
noexcept |
void s3d::LineString::assign | ( | size_type | n, |
const value_type & | value | ||
) |
void s3d::LineString::assign | ( | std::initializer_list< value_type > | il | ) |
Spline2D s3d::LineString::asSpline | ( | CloseRing | closeRing = CloseRing::No | ) | const |
value_type& s3d::LineString::at | ( | size_t | index | ) | & |
value_type s3d::LineString::at | ( | size_t | index | ) | && |
const value_type& s3d::LineString::at | ( | size_t | index | ) | const & |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
太らせた多角形を作成します。
distance | 太らせる距離(ピクセル) |
bufferQuality | 品質 |
終点と始点を結んだうえで、太らせた多角形を作成します。
distance | 太らせる距離(ピクセル) |
bufferQuality | 品質 |
|
noexcept |
連続する線分全体の長さを返します。
closeRing | 終点と始点を結ぶか |
Vec2 s3d::LineString::calculatePointFromOrigin | ( | double | distanceFromOrigin, |
CloseRing | closeRing = CloseRing::No |
||
) | const |
始点から指定した距離にある、線分上の点を返します
distanceFromOrigin | 始点からの距離 |
closeRing | 終点と始点を結ぶか |
丸く太らせた多角形を作成します。
distance | 太らせる距離(ピクセル) |
bufferQuality | 品質 |
Polygon s3d::LineString::calculateRoundBufferClosed | ( | double | distance, |
int32 | bufferQuality = 24 |
||
) | const |
終点と始点を結んだうえで、丸く太らせた多角形を作成します。
distance | 太らせる距離(ピクセル) |
bufferQuality | 品質 |
|
noexcept |
LineString s3d::LineString::catmullRom | ( | CloseRing | closeRing, |
int32 | interpolation = 24 |
||
) | const |
Catmull-Rom スプライン曲線を返します。
closeRing | 終点と始点を結ぶか |
interpolation | 分割の品質 |
LineString s3d::LineString::catmullRom | ( | int32 | interpolation = 24 | ) | const |
Catmull-Rom スプライン曲線を返します。
interpolation | 分割の品質 |
|
noexcept |
|
noexcept |
value_type& s3d::LineString::choice | ( | ) |
const value_type& s3d::LineString::choice | ( | ) | const |
SIV3D_CONCEPT_INTEGRAL LineString s3d::LineString::choice | ( | Int | n | ) | const |
LineString s3d::LineString::choice | ( | Size_t | n, |
URBG && | rbg | ||
) | const |
SIV3D_CONCEPT_URBG value_type& s3d::LineString::choice | ( | URBG && | rbg | ) |
const SIV3D_CONCEPT_URBG value_type& s3d::LineString::choice | ( | URBG && | rbg | ) | const |
|
noexcept |
|
noexcept |
Array<Vec2> s3d::LineString::computeNormals | ( | CloseRing | closeRing = CloseRing::No | ) | const |
size_t s3d::LineString::count | ( | const value_type & | value | ) | const |
size_t s3d::LineString::count_if | ( | Fty | f | ) | const |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
LineString s3d::LineString::densified | ( | double | maxDistance, |
CloseRing | closeRing = CloseRing::No |
||
) | const |
点と点の間の距離が maxDistance
より大きくならないよう、区間ごとに最小回数で均等に分割した結果を返します。
maxDistance | 点と点の間の最大距離 |
closeRing | 終点と始点を結ぶか |
const LineString& s3d::LineString::draw | ( | const ColorF & | color = Palette::White | ) | const |
const LineString& s3d::LineString::draw | ( | const LineStyle & | style, |
double | thickness, | ||
const ColorF & | color = Palette::White |
||
) | const |
const LineString& s3d::LineString::draw | ( | double | thickness, |
const Array< ColorF > & | colors | ||
) | const |
連続する線分を描画します。
thickness | 線の太さ(ピクセル) |
colors | 各頂点に割り当てる色 |
const LineString& s3d::LineString::draw | ( | double | thickness, |
const ColorF & | color = Palette::White |
||
) | const |
連続する線分を描画します。
thickness | 線の太さ(ピクセル) |
color | 色 |
const LineString& s3d::LineString::drawClosed | ( | const ColorF & | color = Palette::White | ) | const |
終点と始点を結んだうえで、連続する線分を描画します。
color | 色 |
const LineString& s3d::LineString::drawClosed | ( | const LineStyle & | style, |
double | thickness, | ||
const ColorF & | color = Palette::White |
||
) | const |
const LineString& s3d::LineString::drawClosed | ( | double | thickness, |
const Array< ColorF > & | colors | ||
) | const |
const LineString& s3d::LineString::drawClosed | ( | double | thickness, |
const ColorF & | color = Palette::White |
||
) | const |
終点と始点を結んだうえで、連続する線分を描画します。
thickness | 線の太さ(ピクセル) |
color | 色 |
iterator s3d::LineString::emplace | ( | const_iterator | position, |
Args &&... | args | ||
) |
decltype(auto) s3d::LineString::emplace_back | ( | Args &&... | args | ) |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
LineString s3d::LineString::extractLineString | ( | double | distanceFromOrigin, |
CloseRing | closeRing = CloseRing::No |
||
) | const |
LineString s3d::LineString::extractLineString | ( | double | distanceFromOrigin, |
double | length, | ||
CloseRing | closeRing = CloseRing::No |
||
) | const |
部分 LineString を返します。
distanceFromOrigin | 始点からの距離 |
length | 長さ |
closeRing | 終点と始点を結ぶか |
LineString& s3d::LineString::fill | ( | const value_type & | value | ) |
|
noexcept |
|
noexcept |
|
noexcept |
iterator s3d::LineString::insert | ( | const_iterator | where, |
const value_type & | value | ||
) |
iterator s3d::LineString::insert | ( | const_iterator | where, |
Iterator | first, | ||
Iterator | last | ||
) |
iterator s3d::LineString::insert | ( | const_iterator | where, |
size_t | count, | ||
const value_type & | value | ||
) |
iterator s3d::LineString::insert | ( | const_iterator | where, |
std::initializer_list< value_type > | il | ||
) |
|
constexpr |
Optional<Array<Vec2> > s3d::LineString::intersectsAt | ( | const Shape2DType & | other | ) | const |
|
noexcept |
String s3d::LineString::join | ( | StringView | sep = U", "_sv , |
StringView | begin = U"{"_sv , |
||
StringView | end = U"}"_sv |
||
) | const |
Line s3d::LineString::line | ( | size_t | index, |
CloseRing | closeRing = CloseRing::No |
||
) | const |
|
noexcept |
|
noexcept |
|
noexcept |
LineString s3d::LineString::movedBy | ( | double | x, |
double | y | ||
) | const |
LineString s3d::LineString::movedBy | ( | Vec2 | v | ) | const |
bool s3d::LineString::none | ( | Fty | f = Identity | ) | const |
Vec2 s3d::LineString::normalAtLine | ( | size_t | index, |
CloseRing | closeRing = CloseRing::No |
||
) | const |
指定した線分における進行方向左手の単位ベクトルを返します。
index | 線分のインデックス |
closeRing | 終点と始点を結ぶか |
Vec2 s3d::LineString::normalAtPoint | ( | size_t | index, |
CloseRing | closeRing = CloseRing::No |
||
) | const |
指定した頂点における進行方向左手の単位ベクトルを返します。
index | 頂点のインデックス |
closeRing | 終点と始点を結ぶか |
|
noexcept |
|
noexcept |
|
explicitnoexcept |
|
noexcept |
LineString& s3d::LineString::operator<< | ( | const value_type & | value | ) |
|
noexcept |
LineString& s3d::LineString::operator= | ( | const Array< Point > & | other | ) |
LineString& s3d::LineString::operator= | ( | const Array< Vec2 > & | other | ) |
LineString& s3d::LineString::operator= | ( | const LineString & | other | ) |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
const LineString& s3d::LineString::overwrite | ( | Image & | dst, |
const Color & | color, | ||
Antialiased | antialiased = Antialiased::Yes |
||
) | const |
const LineString& s3d::LineString::overwrite | ( | Image & | dst, |
int32 | thickness, | ||
const Color & | color, | ||
Antialiased | antialiased = Antialiased::Yes |
||
) | const |
const LineString& s3d::LineString::overwriteClosed | ( | Image & | dst, |
const Color & | color, | ||
Antialiased | antialiased = Antialiased::Yes |
||
) | const |
const LineString& s3d::LineString::overwriteClosed | ( | Image & | dst, |
int32 | thickness, | ||
const Color & | color, | ||
Antialiased | antialiased = Antialiased::Yes |
||
) | const |
const LineString& s3d::LineString::paint | ( | Image & | dst, |
const Color & | color | ||
) | const |
const LineString& s3d::LineString::paint | ( | Image & | dst, |
int32 | thickness, | ||
const Color & | color | ||
) | const |
const LineString& s3d::LineString::paintClosed | ( | Image & | dst, |
const Color & | color | ||
) | const |
const LineString& s3d::LineString::paintClosed | ( | Image & | dst, |
int32 | thickness, | ||
const Color & | color | ||
) | const |
|
noexcept |
void s3d::LineString::pop_back_N | ( | size_t | n | ) |
void s3d::LineString::pop_front | ( | ) |
void s3d::LineString::pop_front_N | ( | size_t | n | ) |
void s3d::LineString::push_back | ( | const value_type & | value | ) |
void s3d::LineString::push_front | ( | const value_type & | value | ) |
|
noexcept |
|
noexcept |
void s3d::LineString::release | ( | ) |
LineString& s3d::LineString::remove | ( | const value_type & | value | ) |
LineString& s3d::LineString::remove_at | ( | size_t | index | ) |
LineString& s3d::LineString::remove_if | ( | Fty | f | ) |
|
noexcept |
|
noexcept |
void s3d::LineString::reserve | ( | size_t | newCapacity | ) |
void s3d::LineString::resize | ( | size_t | newSize | ) |
void s3d::LineString::resize | ( | size_t | newSize, |
const value_type & | value | ||
) |
LineString& s3d::LineString::reverse | ( | ) |
LineString s3d::LineString::reversed | ( | ) | const |
連続する線分の向きを反転した新しい LineString を返します。
LineString& s3d::LineString::scale | ( | double | s | ) |
LineString& s3d::LineString::scale | ( | double | sx, |
double | sy | ||
) |
LineString& s3d::LineString::scale | ( | Vec2 | s | ) |
LineString& s3d::LineString::scaleAt | ( | Vec2 | pos, |
double | s | ||
) |
LineString& s3d::LineString::scaleAt | ( | Vec2 | pos, |
double | sx, | ||
double | sy | ||
) |
LineString& s3d::LineString::scaleAt | ( | Vec2 | pos, |
Vec2 | s | ||
) |
LineString s3d::LineString::scaled | ( | double | s | ) | const |
LineString s3d::LineString::scaled | ( | double | sx, |
double | sy | ||
) | const |
LineString s3d::LineString::scaled | ( | Vec2 | s | ) | const |
LineString s3d::LineString::scaledAt | ( | Vec2 | pos, |
double | s | ||
) | const |
LineString s3d::LineString::scaledAt | ( | Vec2 | pos, |
double | sx, | ||
double | sy | ||
) | const |
LineString s3d::LineString::scaledAt | ( | Vec2 | pos, |
Vec2 | s | ||
) | const |
void s3d::LineString::shrink_to_fit | ( | ) |
LineString& s3d::LineString::shuffle | ( | ) |
SIV3D_CONCEPT_URBG LineString& s3d::LineString::shuffle | ( | URBG && | rbg | ) |
LineString s3d::LineString::simplified | ( | double | maxDistance = 2.0 , |
CloseRing | closeRing = CloseRing::No |
||
) | const |
連続する線分を単純化した LineString を返します。
maxDistance | 単純化の大きさ |
closeRing | 終点と始点を結ぶか |
|
noexcept |
|
noexcept |
LineString s3d::LineString::slice | ( | size_t | index | ) | const |
LineString s3d::LineString::slice | ( | size_t | index, |
size_t | length | ||
) | const |
|
noexcept |
LineString& s3d::LineString::unique_consecutive | ( | ) |
LineString s3d::LineString::uniqued_consecutive | ( | ) | && |
LineString s3d::LineString::uniqued_consecutive | ( | ) | const & |
|
friend |