OpenSiv3D  v0.6.5
C++20 framework for creative coding
s3d::RectF Struct Reference

長方形 (成分が double 型) More...

#include <RectF.hpp>

Public Types

using position_type = Vec2
 
using size_type = Vec2
 
using value_type = size_type::value_type
 

Public Member Functions

SIV3D_NODISCARD_CXX20 RectF ()=default
 
constexpr SIV3D_NODISCARD_CXX20 RectF (value_type _size) noexcept
 長方形を作成します。 More...
 
SIV3D_CONCEPT_ARITHMETIC constexpr SIV3D_NODISCARD_CXX20 RectF (Arithmetic _size) noexcept
 
constexpr SIV3D_NODISCARD_CXX20 RectF (value_type _w, value_type _h) noexcept
 長方形を作成します。 More...
 
template<class W , class H , std::enable_if_t< std::conjunction_v< std::is_arithmetic< W >, std::is_arithmetic< H >>> * = nullptr>
constexpr SIV3D_NODISCARD_CXX20 RectF (W _w, H _h) noexcept
 
constexpr SIV3D_NODISCARD_CXX20 RectF (size_type _size) noexcept
 長方形を作成します。 More...
 
constexpr SIV3D_NODISCARD_CXX20 RectF (value_type _x, value_type _y, value_type _size) noexcept
 長方形を作成します。 More...
 
template<class X , class Y , class S , std::enable_if_t< std::conjunction_v< std::is_arithmetic< X >, std::is_arithmetic< Y >, std::is_arithmetic< S >>> * = nullptr>
constexpr SIV3D_NODISCARD_CXX20 RectF (X _x, Y _y, S _size) noexcept
 
constexpr SIV3D_NODISCARD_CXX20 RectF (value_type _x, value_type _y, value_type _w, value_type _h) noexcept
 長方形を作成します。 More...
 
template<class X , class Y , class W , class H , std::enable_if_t< std::conjunction_v< std::is_arithmetic< X >, std::is_arithmetic< Y >, std::is_arithmetic< W >, std::is_arithmetic< H >>> * = nullptr>
constexpr RectF (X _x, Y _y, W _w, H _h) noexcept
 
constexpr SIV3D_NODISCARD_CXX20 RectF (value_type _x, value_type _y, size_type _size) noexcept
 長方形を作成します。 More...
 
template<class X , class Y , std::enable_if_t< std::conjunction_v< std::is_arithmetic< X >, std::is_arithmetic< Y >>> * = nullptr>
constexpr SIV3D_NODISCARD_CXX20 RectF (X _x, Y _y, size_type _size) noexcept
 
constexpr SIV3D_NODISCARD_CXX20 RectF (position_type _pos, value_type _size) noexcept
 長方形を作成します。 More...
 
SIV3D_CONCEPT_ARITHMETIC constexpr SIV3D_NODISCARD_CXX20 RectF (position_type _pos, Arithmetic _size) noexcept
 
constexpr SIV3D_NODISCARD_CXX20 RectF (position_type _pos, value_type _w, value_type _h) noexcept
 長方形を作成します。 More...
 
template<class W , class H , std::enable_if_t< std::conjunction_v< std::is_arithmetic< W >, std::is_arithmetic< H >>> * = nullptr>
constexpr SIV3D_NODISCARD_CXX20 RectF (position_type _pos, W _w, H _h) noexcept
 
constexpr SIV3D_NODISCARD_CXX20 RectF (position_type _pos, size_type _size) noexcept
 長方形を作成します。 More...
 
constexpr SIV3D_NODISCARD_CXX20 RectF (const Rect &r) noexcept
 長方形を作成します。 More...
 
constexpr SIV3D_NODISCARD_CXX20 RectF (Arg::center_< position_type > _center, value_type _size) noexcept
 
constexpr SIV3D_NODISCARD_CXX20 RectF (Arg::center_< position_type > _center, value_type _w, value_type _h) noexcept
 
constexpr SIV3D_NODISCARD_CXX20 RectF (Arg::center_< position_type > _center, size_type _size) noexcept
 
constexpr SIV3D_NODISCARD_CXX20 RectF (Arg::topLeft_< position_type > topLeft, value_type _size) noexcept
 
constexpr SIV3D_NODISCARD_CXX20 RectF (Arg::topLeft_< position_type > topLeft, value_type _w, value_type _h) noexcept
 
constexpr SIV3D_NODISCARD_CXX20 RectF (Arg::topLeft_< position_type > topLeft, size_type _size) noexcept
 
constexpr SIV3D_NODISCARD_CXX20 RectF (Arg::topCenter_< position_type > topCenter, value_type _size) noexcept
 
constexpr SIV3D_NODISCARD_CXX20 RectF (Arg::topCenter_< position_type > topCenter, value_type _w, value_type _h) noexcept
 
constexpr SIV3D_NODISCARD_CXX20 RectF (Arg::topCenter_< position_type > topCenter, size_type _size) noexcept
 
constexpr SIV3D_NODISCARD_CXX20 RectF (Arg::topRight_< position_type > topRight, value_type _size) noexcept
 
constexpr SIV3D_NODISCARD_CXX20 RectF (Arg::topRight_< position_type > topRight, value_type _w, value_type _h) noexcept
 
constexpr SIV3D_NODISCARD_CXX20 RectF (Arg::topRight_< position_type > topRight, size_type _size) noexcept
 
constexpr SIV3D_NODISCARD_CXX20 RectF (Arg::rightCenter_< position_type > rightCenter, value_type _size) noexcept
 
constexpr SIV3D_NODISCARD_CXX20 RectF (Arg::rightCenter_< position_type > rightCenter, value_type _w, value_type _h) noexcept
 
constexpr SIV3D_NODISCARD_CXX20 RectF (Arg::rightCenter_< position_type > rightCenter, size_type _size) noexcept
 
constexpr SIV3D_NODISCARD_CXX20 RectF (Arg::bottomRight_< position_type > bottomRight, value_type _size) noexcept
 
constexpr SIV3D_NODISCARD_CXX20 RectF (Arg::bottomRight_< position_type > bottomRight, value_type _w, value_type _h) noexcept
 
constexpr SIV3D_NODISCARD_CXX20 RectF (Arg::bottomRight_< position_type > bottomRight, size_type _size) noexcept
 
constexpr SIV3D_NODISCARD_CXX20 RectF (Arg::bottomCenter_< position_type > bottomCenter, value_type _size) noexcept
 
constexpr SIV3D_NODISCARD_CXX20 RectF (Arg::bottomCenter_< position_type > bottomCenter, value_type _w, value_type _h) noexcept
 
constexpr SIV3D_NODISCARD_CXX20 RectF (Arg::bottomCenter_< position_type > bottomCenter, size_type _size) noexcept
 
constexpr SIV3D_NODISCARD_CXX20 RectF (Arg::bottomLeft_< position_type > bottomLeft, value_type _size) noexcept
 
constexpr SIV3D_NODISCARD_CXX20 RectF (Arg::bottomLeft_< position_type > bottomLeft, value_type _w, value_type _h) noexcept
 長方形を作成します。 More...
 
constexpr SIV3D_NODISCARD_CXX20 RectF (Arg::bottomLeft_< position_type > bottomLeft, size_type _size) noexcept
 
constexpr SIV3D_NODISCARD_CXX20 RectF (Arg::leftCenter_< position_type > leftCenter, value_type _size) noexcept
 
constexpr SIV3D_NODISCARD_CXX20 RectF (Arg::leftCenter_< position_type > leftCenter, value_type _w, value_type _h) noexcept
 
constexpr SIV3D_NODISCARD_CXX20 RectF (Arg::leftCenter_< position_type > leftCenter, size_type _size) noexcept
 
constexpr RectFsetPos (value_type _x, value_type _y) noexcept
 
constexpr RectFsetPos (position_type _pos) noexcept
 
constexpr RectFsetPos (Arg::center_< position_type > _center) noexcept
 
constexpr RectFsetPos (Arg::topLeft_< position_type > topLeft) noexcept
 
constexpr RectFsetPos (Arg::topCenter_< position_type > topCenter) noexcept
 
constexpr RectFsetPos (Arg::topRight_< position_type > topRight) noexcept
 
constexpr RectFsetPos (Arg::rightCenter_< position_type > rightCenter) noexcept
 
constexpr RectFsetPos (Arg::bottomRight_< position_type > bottomRight) noexcept
 
constexpr RectFsetPos (Arg::bottomCenter_< position_type > bottomCenter) noexcept
 
constexpr RectFsetPos (Arg::bottomLeft_< position_type > bottomLeft) noexcept
 
constexpr RectFsetPos (Arg::leftCenter_< position_type > leftCenter) noexcept
 
constexpr RectFsetCenter (value_type _x, value_type _y) noexcept
 
constexpr RectFsetCenter (position_type _pos) noexcept
 
constexpr RectFsetSize (value_type _size) noexcept
 
constexpr RectFsetSize (value_type _w, value_type _h) noexcept
 
constexpr RectFsetSize (size_type _size) noexcept
 
constexpr RectFset (value_type _x, value_type _y, value_type _w, value_type _h) noexcept
 
constexpr RectFset (value_type _x, value_type _y, value_type _size) noexcept
 
constexpr RectFset (value_type _x, value_type _y, size_type _size) noexcept
 
constexpr RectFset (position_type _pos, value_type _size) noexcept
 
constexpr RectFset (position_type _pos, value_type _w, value_type _h) noexcept
 
constexpr RectFset (position_type _pos, size_type _size) noexcept
 
constexpr RectFset (const Rect &r) noexcept
 
constexpr RectFset (const RectF &r) noexcept
 
constexpr RectFset (Arg::center_< position_type > _center, value_type _size) noexcept
 
constexpr RectFset (Arg::center_< position_type > _center, value_type _w, value_type _h) noexcept
 
constexpr RectFset (Arg::center_< position_type > _center, size_type _size) noexcept
 
constexpr RectFset (Arg::topLeft_< position_type > topLeft, value_type _size) noexcept
 
constexpr RectFset (Arg::topLeft_< position_type > topLeft, value_type _w, value_type _h) noexcept
 
constexpr RectFset (Arg::topLeft_< position_type > topLeft, size_type _size) noexcept
 
constexpr RectFset (Arg::topCenter_< position_type > topCenter, value_type _size) noexcept
 
constexpr RectFset (Arg::topCenter_< position_type > topCenter, value_type _w, value_type _h) noexcept
 
constexpr RectFset (Arg::topCenter_< position_type > topCenter, size_type _size) noexcept
 
constexpr RectFset (Arg::topRight_< position_type > topRight, value_type _size) noexcept
 
constexpr RectFset (Arg::topRight_< position_type > topRight, value_type _w, value_type _h) noexcept
 
constexpr RectFset (Arg::topRight_< position_type > topRight, size_type _size) noexcept
 
constexpr RectFset (Arg::rightCenter_< position_type > rightCenter, value_type _size) noexcept
 
constexpr RectFset (Arg::rightCenter_< position_type > rightCenter, value_type _w, value_type _h) noexcept
 
constexpr RectFset (Arg::rightCenter_< position_type > rightCenter, size_type _size) noexcept
 
constexpr RectFset (Arg::bottomRight_< position_type > bottomRight, value_type _size) noexcept
 
constexpr RectFset (Arg::bottomRight_< position_type > bottomRight, value_type _w, value_type _h) noexcept
 
constexpr RectFset (Arg::bottomRight_< position_type > bottomRight, size_type _size) noexcept
 
constexpr RectFset (Arg::bottomCenter_< position_type > bottomCenter, value_type _size) noexcept
 
constexpr RectFset (Arg::bottomCenter_< position_type > bottomCenter, value_type _w, value_type _h) noexcept
 
constexpr RectFset (Arg::bottomCenter_< position_type > bottomCenter, size_type _size) noexcept
 
constexpr RectFset (Arg::bottomLeft_< position_type > bottomLeft, value_type _size) noexcept
 
constexpr RectFset (Arg::bottomLeft_< position_type > bottomLeft, value_type _w, value_type _h) noexcept
 
constexpr RectFset (Arg::bottomLeft_< position_type > bottomLeft, size_type _size) noexcept
 
constexpr RectFset (Arg::leftCenter_< position_type > leftCenter, value_type _size) noexcept
 
constexpr RectFset (Arg::leftCenter_< position_type > leftCenter, value_type _w, value_type _h) noexcept
 
constexpr RectFset (Arg::leftCenter_< position_type > leftCenter, size_type _size) noexcept
 
constexpr RectF movedBy (value_type _x, value_type _y) const noexcept
 座標を移動した新しい長方形を返します。 More...
 
constexpr RectF movedBy (size_type v) const noexcept
 座標を移動した新しい長方形を返します。 More...
 
constexpr RectFmoveBy (value_type _x, value_type _y) noexcept
 長方形を移動させます。 More...
 
constexpr RectFmoveBy (size_type v) noexcept
 長方形を移動させます。 More...
 
constexpr RectF stretched (value_type xy) const noexcept
 
constexpr RectF stretched (value_type _x, value_type _y) const noexcept
 
constexpr RectF stretched (size_type xy) const noexcept
 
constexpr RectF stretched (value_type top, value_type right, value_type bottom, value_type left) const noexcept
 
constexpr RectF scaled (double s) const noexcept
 
constexpr RectF scaled (double sx, double sy) const noexcept
 
constexpr RectF scaled (Vec2 s) const noexcept
 
constexpr RectF scaledAt (Vec2 _pos, double s) const noexcept
 
constexpr RectF scaledAt (Vec2 _pos, double sx, double sy) const noexcept
 
constexpr RectF scaledAt (Vec2 _pos, Vec2 s) const noexcept
 
constexpr operator bool () const noexcept
 長方形が空でないかを返します。 More...
 
constexpr bool isEmpty () const noexcept
 長方形が空であるかを返します。 More...
 
constexpr bool hasArea () const noexcept
 長方形が大きさを持っているかを返します。 More...
 
constexpr value_type leftX () const noexcept
 長方形の左辺の X 座標を返します。 More...
 
constexpr value_type rightX () const noexcept
 長方形の右辺の X 座標を返します。 More...
 
constexpr value_type topY () const noexcept
 長方形の上辺の Y 座標を返します。 More...
 
constexpr value_type bottomY () const noexcept
 長方形の下辺の Y 座標を返します。 More...
 
constexpr value_type centerX () const noexcept
 長方形の中心の X 座標を返します。 More...
 
constexpr value_type centerY () const noexcept
 長方形の中心の Y 座標を返します。 More...
 
constexpr size_type tl () const noexcept
 長方形の左上の座標を返します。 More...
 
constexpr size_type tr () const noexcept
 長方形の右上の座標を返します。 More...
 
constexpr size_type br () const noexcept
 長方形の右下の座標を返します。 More...
 
constexpr size_type bl () const noexcept
 長方形の左下の座標を返します。 More...
 
constexpr Vec2 topCenter () const noexcept
 長方形の上辺の中心座標を返します。 More...
 
constexpr Vec2 rightCenter () const noexcept
 長方形の右辺の中心座標を返します。 More...
 
constexpr Vec2 bottomCenter () const noexcept
 長方形の下辺の中心座標を返します。 More...
 
constexpr Vec2 leftCenter () const noexcept
 長方形の左辺の中心座標を返します。 More...
 
constexpr Vec2 center () const noexcept
 長方形の中心座標を返します。 More...
 
constexpr position_type getRelativePoint (double relativeX, double relativeY) const noexcept
 長方形の左上を (0 ,0), 右下を (1, 1) としたときの (relativeX, relativeY) の座標を返します。 More...
 
constexpr Line top () const noexcept
 長方形の上辺を Line として返します。 More...
 
constexpr Line right () const noexcept
 長方形の右辺を Line として返します。 More...
 
constexpr Line bottom () const noexcept
 長方形の下辺を Line として返します。 More...
 
constexpr Line left () const noexcept
 長方形の左辺を Line として返します。 More...
 
constexpr position_type point (size_t index) const
 
constexpr Line side (size_t index) const
 
constexpr Triangle triangle (size_t index) const
 
constexpr value_type area () const noexcept
 長方形の面積を返します。 More...
 
constexpr value_type perimeter () const noexcept
 長方形の周の長さを返します。 More...
 
constexpr value_type horizontalAspectRatio () const noexcept
 
Quad rotated (double angle) const noexcept
 
Quad rotatedAt (double _x, double _y, double angle) const noexcept
 
Quad rotatedAt (Vec2 _pos, double angle) const noexcept
 
constexpr Quad shearedX (double vx) const noexcept
 
constexpr Quad shearedY (double vy) const noexcept
 
constexpr RoundRect rounded (double r) const noexcept
 
Polygon rounded (double tl, double tr, double br, double bl) const noexcept
 
constexpr Rect asRect () const noexcept
 長方形を Rect として返します。 More...
 
constexpr Quad asQuad () const noexcept
 長方形を Quad として返します。 More...
 
LineString outline (CloseRing closeRing=CloseRing::No) const
 長方形の輪郭を LineString として返します。 More...
 
LineString outline (double distanceFromOrigin, double length) const
 長方形の輪郭の一部を LineString として返します。 More...
 
Polygon asPolygon () const
 長方形を Polygon として返します。 More...
 
constexpr RectF lerp (const RectF &other, double f) const noexcept
 
constexpr RectF getOverlap (const RectF &other) const noexcept
 別の長方形と重なる領域を返します。重ならない場合は空の長方形を返します。 More...
 
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
 
template<class Shape2DType >
bool contains (const Shape2DType &other) const
 
bool leftClicked () const noexcept
 長方形が現在のフレームで左クリックされ始めたかを返します。 More...
 
bool leftPressed () const noexcept
 長方形が左クリックされているかを返します。 More...
 
bool leftReleased () const noexcept
 現在のフレームで長方形への左クリックが離されたかを返します。 More...
 
bool rightClicked () const noexcept
 長方形が現在のフレームで右クリックされ始めたかを返します。 More...
 
bool rightPressed () const noexcept
 長方形が右クリックされているかを返します。 More...
 
bool rightReleased () const noexcept
 現在のフレームで長方形への右クリックが離されたかを返します。 More...
 
bool mouseOver () const noexcept
 長方形上にマウスカーソルがあるかを返します。 More...
 
const RectFpaint (Image &dst, const Color &color) const
 
const RectFoverwrite (Image &dst, const Color &color) const
 
const RectFpaintFrame (Image &dst, int32 innerThickness, int32 outerThickness, const Color &color) const
 
const RectFoverwriteFrame (Image &dst, int32 innerThickness, int32 outerThickness, const Color &color) const
 
const RectFdraw (const ColorF &color=Palette::White) const
 長方形を描画します。 More...
 
const RectFdraw (const ColorF(&colors)[4]) const
 長方形を描画します。 More...
 
const RectFdraw (Arg::top_< ColorF > topColor, Arg::bottom_< ColorF > bottomColor) const
 長方形を描画します。 More...
 
const RectFdraw (Arg::left_< ColorF > leftColor, Arg::right_< ColorF > rightColor) const
 長方形を描画します。 More...
 
const RectFdrawFrame (double thickness=1.0, const ColorF &color=Palette::White) const
 長方形の枠を描画します。 More...
 
const RectFdrawFrame (double thickness, const ColorF &innerColor, const ColorF &outerColor) const
 長方形の枠を描画します。 More...
 
const RectFdrawFrame (double innerThickness, double outerThickness, const ColorF &color=Palette::White) const
 長方形の枠を描画します。 More...
 
const RectFdrawFrame (double innerThickness, double outerThickness, const ColorF &innerColor, const ColorF &outerColor) const
 長方形の枠を描画します。 More...
 
const RectFdrawShadow (const Vec2 &offset, double blurRadius, double spread=0.0, const ColorF &color=ColorF{ 0.0, 0.5 }) const
 長方形の影を描画します。 More...
 
TexturedQuad operator() (const Texture &texture) const
 
TexturedQuad operator() (const TextureRegion &textureRegion) const
 

Static Public Member Functions

static constexpr RectF Empty () noexcept
 空の長方形を返します。 More...
 
static constexpr RectF FromPoints (position_type a, position_type b) noexcept
 対角線上の 2 点の座標をもとに長方形を作成します。 More...
 

Public Attributes

union {
   position_type   pos
 長方形の左上の点の位置 More...
 
   struct {
      value_type   x
 長方形の左上の点の X 座標 More...
 
      value_type   y
 長方形の左上の点の Y 座標 More...
 
   } 
 
}; 
 
union {
   size_type   size
 長方形のサイズ More...
 
   struct {
      value_type   w
 長方形の幅 More...
 
      value_type   h
 長方形の高さ More...
 
   } 
 
}; 
 

Friends

constexpr friend bool operator== (const RectF &lhs, const RectF &rhs) noexcept
 
constexpr friend bool operator!= (const RectF &lhs, const RectF &rhs) noexcept
 
template<class CharType >
std::basic_ostream< CharType > & operator<< (std::basic_ostream< CharType > &output, const RectF &value)
 
template<class CharType >
std::basic_istream< CharType > & operator>> (std::basic_istream< CharType > &input, RectF &value)
 
void Formatter (FormatData &formatData, const RectF &value)
 

Detailed Description

長方形 (成分が double 型)

Remarks

pos, tl() top() tr() +--------------—+ | | left() | | right() | | +--------------—+ bl() bottom() br()

Member Typedef Documentation

◆ position_type

◆ size_type

◆ value_type

Constructor & Destructor Documentation

◆ RectF() [1/45]

SIV3D_NODISCARD_CXX20 s3d::RectF::RectF ( )
default

◆ RectF() [2/45]

constexpr SIV3D_NODISCARD_CXX20 s3d::RectF::RectF ( value_type  _size)
explicitconstexprnoexcept

長方形を作成します。

Parameters
_size長方形の幅と高さ

◆ RectF() [3/45]

SIV3D_CONCEPT_ARITHMETIC constexpr SIV3D_NODISCARD_CXX20 s3d::RectF::RectF ( Arithmetic  _size)
explicitconstexprnoexcept

◆ RectF() [4/45]

constexpr SIV3D_NODISCARD_CXX20 s3d::RectF::RectF ( value_type  _w,
value_type  _h 
)
constexprnoexcept

長方形を作成します。

Parameters
_w長方形の幅
_h長方形の高さ

◆ RectF() [5/45]

template<class W , class H , std::enable_if_t< std::conjunction_v< std::is_arithmetic< W >, std::is_arithmetic< H >>> * = nullptr>
constexpr SIV3D_NODISCARD_CXX20 s3d::RectF::RectF ( _w,
_h 
)
explicitconstexprnoexcept

◆ RectF() [6/45]

constexpr SIV3D_NODISCARD_CXX20 s3d::RectF::RectF ( size_type  _size)
explicitconstexprnoexcept

長方形を作成します。

Parameters
_size長方形の大きさ

◆ RectF() [7/45]

constexpr SIV3D_NODISCARD_CXX20 s3d::RectF::RectF ( value_type  _x,
value_type  _y,
value_type  _size 
)
constexprnoexcept

長方形を作成します。

Parameters
_x長方形の左上の点の X 座標
_y長方形の左上の点の Y 座標
_size長方形の縦横の大きさ

◆ RectF() [8/45]

template<class X , class Y , class S , std::enable_if_t< std::conjunction_v< std::is_arithmetic< X >, std::is_arithmetic< Y >, std::is_arithmetic< S >>> * = nullptr>
constexpr SIV3D_NODISCARD_CXX20 s3d::RectF::RectF ( _x,
_y,
_size 
)
constexprnoexcept

◆ RectF() [9/45]

constexpr SIV3D_NODISCARD_CXX20 s3d::RectF::RectF ( value_type  _x,
value_type  _y,
value_type  _w,
value_type  _h 
)
constexprnoexcept

長方形を作成します。

Parameters
_x長方形の左上の点の X 座標
_y長方形の左上の点の Y 座標
_w長方形の幅
_h長方形の高さ

◆ RectF() [10/45]

template<class X , class Y , class W , class H , std::enable_if_t< std::conjunction_v< std::is_arithmetic< X >, std::is_arithmetic< Y >, std::is_arithmetic< W >, std::is_arithmetic< H >>> * = nullptr>
constexpr s3d::RectF::RectF ( _x,
_y,
_w,
_h 
)
constexprnoexcept

◆ RectF() [11/45]

constexpr SIV3D_NODISCARD_CXX20 s3d::RectF::RectF ( value_type  _x,
value_type  _y,
size_type  _size 
)
constexprnoexcept

長方形を作成します。

Parameters
_x長方形の左上の点の X 座標
_y長方形の左上の点の Y 座標
_size長方形の大きさ

◆ RectF() [12/45]

template<class X , class Y , std::enable_if_t< std::conjunction_v< std::is_arithmetic< X >, std::is_arithmetic< Y >>> * = nullptr>
constexpr SIV3D_NODISCARD_CXX20 s3d::RectF::RectF ( _x,
_y,
size_type  _size 
)
constexprnoexcept

◆ RectF() [13/45]

constexpr SIV3D_NODISCARD_CXX20 s3d::RectF::RectF ( position_type  _pos,
value_type  _size 
)
constexprnoexcept

長方形を作成します。

Parameters
_pos長方形の左上の点の座標
_size長方形の大きさ

◆ RectF() [14/45]

SIV3D_CONCEPT_ARITHMETIC constexpr SIV3D_NODISCARD_CXX20 s3d::RectF::RectF ( position_type  _pos,
Arithmetic  _size 
)
constexprnoexcept

◆ RectF() [15/45]

constexpr SIV3D_NODISCARD_CXX20 s3d::RectF::RectF ( position_type  _pos,
value_type  _w,
value_type  _h 
)
constexprnoexcept

長方形を作成します。

Parameters
_pos長方形の左上の点の座標
_w長方形の幅
_h長方形の高さ

◆ RectF() [16/45]

template<class W , class H , std::enable_if_t< std::conjunction_v< std::is_arithmetic< W >, std::is_arithmetic< H >>> * = nullptr>
constexpr SIV3D_NODISCARD_CXX20 s3d::RectF::RectF ( position_type  _pos,
_w,
_h 
)
constexprnoexcept

◆ RectF() [17/45]

constexpr SIV3D_NODISCARD_CXX20 s3d::RectF::RectF ( position_type  _pos,
size_type  _size 
)
constexprnoexcept

長方形を作成します。

Parameters
_pos長方形の左上の点の座標
_size長方形の大きさ

◆ RectF() [18/45]

constexpr SIV3D_NODISCARD_CXX20 s3d::RectF::RectF ( const Rect r)
constexprnoexcept

長方形を作成します。

Template Parameters
Type長方形のサイズの型
Parameters
r長方形

◆ RectF() [19/45]

constexpr SIV3D_NODISCARD_CXX20 s3d::RectF::RectF ( Arg::center_< position_type _center,
value_type  _size 
)
constexprnoexcept
Parameters
_center
_size

◆ RectF() [20/45]

constexpr SIV3D_NODISCARD_CXX20 s3d::RectF::RectF ( Arg::center_< position_type _center,
value_type  _w,
value_type  _h 
)
constexprnoexcept
Parameters
_center
_w
_h

◆ RectF() [21/45]

constexpr SIV3D_NODISCARD_CXX20 s3d::RectF::RectF ( Arg::center_< position_type _center,
size_type  _size 
)
constexprnoexcept
Parameters
_center
_size

◆ RectF() [22/45]

constexpr SIV3D_NODISCARD_CXX20 s3d::RectF::RectF ( Arg::topLeft_< position_type topLeft,
value_type  _size 
)
constexprnoexcept
Parameters
topLeft
_size

◆ RectF() [23/45]

constexpr SIV3D_NODISCARD_CXX20 s3d::RectF::RectF ( Arg::topLeft_< position_type topLeft,
value_type  _w,
value_type  _h 
)
constexprnoexcept
Parameters
topLeft
_w
_h

◆ RectF() [24/45]

constexpr SIV3D_NODISCARD_CXX20 s3d::RectF::RectF ( Arg::topLeft_< position_type topLeft,
size_type  _size 
)
constexprnoexcept
Parameters
topLeft
_size

◆ RectF() [25/45]

constexpr SIV3D_NODISCARD_CXX20 s3d::RectF::RectF ( Arg::topCenter_< position_type topCenter,
value_type  _size 
)
constexprnoexcept
Parameters
topCenter
_size

◆ RectF() [26/45]

constexpr SIV3D_NODISCARD_CXX20 s3d::RectF::RectF ( Arg::topCenter_< position_type topCenter,
value_type  _w,
value_type  _h 
)
constexprnoexcept
Parameters
topCenter
_w
_h

◆ RectF() [27/45]

constexpr SIV3D_NODISCARD_CXX20 s3d::RectF::RectF ( Arg::topCenter_< position_type topCenter,
size_type  _size 
)
constexprnoexcept
Parameters
topCenter
_size

◆ RectF() [28/45]

constexpr SIV3D_NODISCARD_CXX20 s3d::RectF::RectF ( Arg::topRight_< position_type topRight,
value_type  _size 
)
constexprnoexcept
Parameters
topRight
_size

◆ RectF() [29/45]

constexpr SIV3D_NODISCARD_CXX20 s3d::RectF::RectF ( Arg::topRight_< position_type topRight,
value_type  _w,
value_type  _h 
)
constexprnoexcept
Parameters
topRight
_w
_h

◆ RectF() [30/45]

constexpr SIV3D_NODISCARD_CXX20 s3d::RectF::RectF ( Arg::topRight_< position_type topRight,
size_type  _size 
)
constexprnoexcept
Parameters
topRight
_size

◆ RectF() [31/45]

constexpr SIV3D_NODISCARD_CXX20 s3d::RectF::RectF ( Arg::rightCenter_< position_type rightCenter,
value_type  _size 
)
constexprnoexcept
Parameters
rightCenter
_size

◆ RectF() [32/45]

constexpr SIV3D_NODISCARD_CXX20 s3d::RectF::RectF ( Arg::rightCenter_< position_type rightCenter,
value_type  _w,
value_type  _h 
)
constexprnoexcept
Parameters
rightCenter
_w
_h

◆ RectF() [33/45]

constexpr SIV3D_NODISCARD_CXX20 s3d::RectF::RectF ( Arg::rightCenter_< position_type rightCenter,
size_type  _size 
)
constexprnoexcept
Parameters
rightCenter
_size

◆ RectF() [34/45]

constexpr SIV3D_NODISCARD_CXX20 s3d::RectF::RectF ( Arg::bottomRight_< position_type bottomRight,
value_type  _size 
)
constexprnoexcept
Parameters
bottomRight
_size

◆ RectF() [35/45]

constexpr SIV3D_NODISCARD_CXX20 s3d::RectF::RectF ( Arg::bottomRight_< position_type bottomRight,
value_type  _w,
value_type  _h 
)
constexprnoexcept
Parameters
bottomRight
_w
_h

◆ RectF() [36/45]

constexpr SIV3D_NODISCARD_CXX20 s3d::RectF::RectF ( Arg::bottomRight_< position_type bottomRight,
size_type  _size 
)
constexprnoexcept
Parameters
bottomRight
_size

◆ RectF() [37/45]

constexpr SIV3D_NODISCARD_CXX20 s3d::RectF::RectF ( Arg::bottomCenter_< position_type bottomCenter,
value_type  _size 
)
constexprnoexcept
Parameters
bottomCenter
_size

◆ RectF() [38/45]

constexpr SIV3D_NODISCARD_CXX20 s3d::RectF::RectF ( Arg::bottomCenter_< position_type bottomCenter,
value_type  _w,
value_type  _h 
)
constexprnoexcept
Parameters
bottomCenter
_w
_h

◆ RectF() [39/45]

constexpr SIV3D_NODISCARD_CXX20 s3d::RectF::RectF ( Arg::bottomCenter_< position_type bottomCenter,
size_type  _size 
)
constexprnoexcept
Parameters
bottomCenter
_size

◆ RectF() [40/45]

constexpr SIV3D_NODISCARD_CXX20 s3d::RectF::RectF ( Arg::bottomLeft_< position_type bottomLeft,
value_type  _size 
)
constexprnoexcept
Parameters
bottomLeft
_size

◆ RectF() [41/45]

constexpr SIV3D_NODISCARD_CXX20 s3d::RectF::RectF ( Arg::bottomLeft_< position_type bottomLeft,
value_type  _w,
value_type  _h 
)
constexprnoexcept

長方形を作成します。

Parameters
bottomLeft長方形の左下の座標
_w長方形の幅
_h長方形の高さ

◆ RectF() [42/45]

constexpr SIV3D_NODISCARD_CXX20 s3d::RectF::RectF ( Arg::bottomLeft_< position_type bottomLeft,
size_type  _size 
)
constexprnoexcept
Parameters
bottomLeft
_size

◆ RectF() [43/45]

constexpr SIV3D_NODISCARD_CXX20 s3d::RectF::RectF ( Arg::leftCenter_< position_type leftCenter,
value_type  _size 
)
constexprnoexcept
Parameters
leftCenter
_size

◆ RectF() [44/45]

constexpr SIV3D_NODISCARD_CXX20 s3d::RectF::RectF ( Arg::leftCenter_< position_type leftCenter,
value_type  _w,
value_type  _h 
)
constexprnoexcept
Parameters
leftCenter
_w
_h

◆ RectF() [45/45]

constexpr SIV3D_NODISCARD_CXX20 s3d::RectF::RectF ( Arg::leftCenter_< position_type leftCenter,
size_type  _size 
)
constexprnoexcept
Parameters
leftCenter
_size

Member Function Documentation

◆ area()

constexpr value_type s3d::RectF::area ( ) const
constexprnoexcept

長方形の面積を返します。

Returns
長方形の面積

◆ asPolygon()

Polygon s3d::RectF::asPolygon ( ) const

長方形を Polygon として返します。

Returns
長方形の Polygon

◆ asQuad()

constexpr Quad s3d::RectF::asQuad ( ) const
constexprnoexcept

長方形を Quad として返します。

Returns
長方形の Quad

◆ asRect()

constexpr Rect s3d::RectF::asRect ( ) const
constexprnoexcept

長方形を Rect として返します。

Returns
長方形の Rect

◆ bl()

constexpr size_type s3d::RectF::bl ( ) const
constexprnoexcept

長方形の左下の座標を返します。

Returns
長方形の左下の座標

◆ bottom()

constexpr Line s3d::RectF::bottom ( ) const
constexprnoexcept

長方形の下辺を Line として返します。

Returns
長方形の下辺

◆ bottomCenter()

constexpr Vec2 s3d::RectF::bottomCenter ( ) const
constexprnoexcept

長方形の下辺の中心座標を返します。

Returns
長方形の下辺の中心座標

◆ bottomY()

constexpr value_type s3d::RectF::bottomY ( ) const
constexprnoexcept

長方形の下辺の Y 座標を返します。

Returns
長方形の下辺の Y 座標

◆ br()

constexpr size_type s3d::RectF::br ( ) const
constexprnoexcept

長方形の右下の座標を返します。

Returns
長方形の右下の座標

◆ center()

constexpr Vec2 s3d::RectF::center ( ) const
constexprnoexcept

長方形の中心座標を返します。

Returns
長方形の中心座標

◆ centerX()

constexpr value_type s3d::RectF::centerX ( ) const
constexprnoexcept

長方形の中心の X 座標を返します。

Returns
長方形の中心の X 座標

◆ centerY()

constexpr value_type s3d::RectF::centerY ( ) const
constexprnoexcept

長方形の中心の Y 座標を返します。

Returns
長方形の中心の Y 座標

◆ contains()

template<class Shape2DType >
bool s3d::RectF::contains ( const Shape2DType &  other) const

◆ draw() [1/4]

const RectF& s3d::RectF::draw ( Arg::left_< ColorF leftColor,
Arg::right_< ColorF rightColor 
) const

長方形を描画します。

Parameters
leftColor長方形の左側の色
rightColor長方形の右側の色
Remarks
rect.draw(Arg::left = ColorF{ 0.0 }, Arg::right = ColorF{ 1.0 }) のように呼びます。
Returns
*this

◆ draw() [2/4]

const RectF& s3d::RectF::draw ( Arg::top_< ColorF topColor,
Arg::bottom_< ColorF bottomColor 
) const

長方形を描画します。

Parameters
topColor長方形の上側の色
bottomColor長方形の下側の色
Remarks
rect.draw(Arg::top = ColorF{ 0.0 }, Arg::bottom = ColorF{ 1.0 }) のように呼びます。
Returns
*this

◆ draw() [3/4]

const RectF& s3d::RectF::draw ( const ColorF color = Palette::White) const

長方形を描画します。

Parameters
color
Returns
*this

◆ draw() [4/4]

const RectF& s3d::RectF::draw ( const ColorF(&)  colors[4]) const

長方形を描画します。

Parameters
colors左上、右上、右下、左下の各頂点の色
Remarks
描画時には 2 つの三角形に分割されるため、斜め方向のグラデーションは方向によってグラデーションのかかり方が変わります。上下、左右方向のグラデーションには影響しません。
Returns
*this

◆ drawFrame() [1/4]

const RectF& s3d::RectF::drawFrame ( double  innerThickness,
double  outerThickness,
const ColorF color = Palette::White 
) const

長方形の枠を描画します。

Parameters
innerThickness内側寄りの枠の太さ
outerThickness外側寄りの枠の太さ
color
Returns
*this

◆ drawFrame() [2/4]

const RectF& s3d::RectF::drawFrame ( double  innerThickness,
double  outerThickness,
const ColorF innerColor,
const ColorF outerColor 
) const

長方形の枠を描画します。

Parameters
innerThickness内側寄りの枠の太さ
outerThickness外側寄りの枠の太さ
innerColor内側寄りの枠の色
outerColor外側寄りの枠の色
Returns
*this

◆ drawFrame() [3/4]

const RectF& s3d::RectF::drawFrame ( double  thickness,
const ColorF innerColor,
const ColorF outerColor 
) const

長方形の枠を描画します。

Parameters
thickness枠の太さ
innerColor内側寄りの枠の色
outerColor外側寄りの枠の色
Returns
*this

◆ drawFrame() [4/4]

const RectF& s3d::RectF::drawFrame ( double  thickness = 1.0,
const ColorF color = Palette::White 
) const

長方形の枠を描画します。

Parameters
thickness枠の太さ
color
Returns
*this

◆ drawShadow()

const RectF& s3d::RectF::drawShadow ( const Vec2 offset,
double  blurRadius,
double  spread = 0.0,
const ColorF color = ColorF{ 0.0, 0.5 } 
) const

長方形の影を描画します。

Parameters
offset影の位置のオフセット(ピクセル)
blurRadius影のぼかし半径(ピクセル)
spread影の膨張(ピクセル)
color影の色
Returns
*this

◆ Empty()

static constexpr RectF s3d::RectF::Empty ( )
staticconstexprnoexcept

空の長方形を返します。

Returns
空の長方形 (RectF{ 0, 0, 0, 0 })

◆ FromPoints()

static constexpr RectF s3d::RectF::FromPoints ( position_type  a,
position_type  b 
)
staticconstexprnoexcept

対角線上の 2 点の座標をもとに長方形を作成します。

Parameters
a対角線をなす座標の 1 つ
b対角線をなす座標の 1 つ
Returns
作成した長方形

◆ getOverlap()

constexpr RectF s3d::RectF::getOverlap ( const RectF other) const
constexprnoexcept

別の長方形と重なる領域を返します。重ならない場合は空の長方形を返します。

Parameters
other別の長方形
Returns
別の長方形と重なる領域。重ならない場合は空の長方形

◆ getRelativePoint()

constexpr position_type s3d::RectF::getRelativePoint ( double  relativeX,
double  relativeY 
) const
constexprnoexcept

長方形の左上を (0 ,0), 右下を (1, 1) としたときの (relativeX, relativeY) の座標を返します。

Parameters
relativeXX 座標の相対的な位置
relativeYY 座標の相対的な位置
Returns
長方形の左上を (0 ,0), 右下を (1, 1) としたときの (relativeX, relativeY) の座標

◆ hasArea()

constexpr bool s3d::RectF::hasArea ( ) const
constexprnoexcept

長方形が大きさを持っているかを返します。

Returns
長方形が大きさを持っている場合 true, それ以外の場合は false

◆ hash()

size_t s3d::RectF::hash ( ) const
noexcept

◆ horizontalAspectRatio()

constexpr value_type s3d::RectF::horizontalAspectRatio ( ) const
constexprnoexcept

◆ intersects()

template<class Shape2DType >
constexpr bool s3d::RectF::intersects ( const Shape2DType &  other) const
constexpr

◆ intersectsAt()

template<class Shape2DType >
Optional<Array<Vec2> > s3d::RectF::intersectsAt ( const Shape2DType &  other) const

◆ isEmpty()

constexpr bool s3d::RectF::isEmpty ( ) const
constexprnoexcept

長方形が空であるかを返します。

Returns
空の長方形である場合 true, それ以外の場合は false

◆ left()

constexpr Line s3d::RectF::left ( ) const
constexprnoexcept

長方形の左辺を Line として返します。

Returns
長方形の左辺

◆ leftCenter()

constexpr Vec2 s3d::RectF::leftCenter ( ) const
constexprnoexcept

長方形の左辺の中心座標を返します。

Returns
長方形の左辺の中心座標

◆ leftClicked()

bool s3d::RectF::leftClicked ( ) const
noexcept

長方形が現在のフレームで左クリックされ始めたかを返します。

Returns
長方形が現在のフレームで左クリックされ始めた場合 true, それ以外の場合は false

◆ leftPressed()

bool s3d::RectF::leftPressed ( ) const
noexcept

長方形が左クリックされているかを返します。

Returns
長方形が左クリックされている場合 true, それ以外の場合は false

◆ leftReleased()

bool s3d::RectF::leftReleased ( ) const
noexcept

現在のフレームで長方形への左クリックが離されたかを返します。

Returns
現在のフレームで長方形への左クリックが離された場合 true, それ以外の場合は false

◆ leftX()

constexpr value_type s3d::RectF::leftX ( ) const
constexprnoexcept

長方形の左辺の X 座標を返します。

Returns
長方形の左辺の X 座標

◆ lerp()

constexpr RectF s3d::RectF::lerp ( const RectF other,
double  f 
) const
constexprnoexcept

◆ mouseOver()

bool s3d::RectF::mouseOver ( ) const
noexcept

長方形上にマウスカーソルがあるかを返します。

Returns
長方形上にマウスカーソルがある場合 true, それ以外の場合は false

◆ moveBy() [1/2]

constexpr RectF& s3d::RectF::moveBy ( size_type  v)
constexprnoexcept

長方形を移動させます。

Parameters
v移動量
Returns
*this

◆ moveBy() [2/2]

constexpr RectF& s3d::RectF::moveBy ( value_type  _x,
value_type  _y 
)
constexprnoexcept

長方形を移動させます。

Parameters
_xX 軸方向の移動量
_yY 軸方向の移動量
Returns
*this

◆ movedBy() [1/2]

constexpr RectF s3d::RectF::movedBy ( size_type  v) const
constexprnoexcept

座標を移動した新しい長方形を返します。

Parameters
v移動量
Returns
新しい長方形

◆ movedBy() [2/2]

constexpr RectF s3d::RectF::movedBy ( value_type  _x,
value_type  _y 
) const
constexprnoexcept

座標を移動した新しい長方形を返します。

Parameters
_xX 軸方向の移動量
_yY 軸方向の移動量
Returns
新しい長方形

◆ operator bool()

constexpr s3d::RectF::operator bool ( ) const
explicitconstexprnoexcept

長方形が空でないかを返します。

Remarks
hasArea() と同じです。
Returns
長方形が空でない場合 true, それ以外の場合は false

◆ operator()() [1/2]

TexturedQuad s3d::RectF::operator() ( const Texture texture) const

◆ operator()() [2/2]

TexturedQuad s3d::RectF::operator() ( const TextureRegion textureRegion) const

◆ outline() [1/2]

LineString s3d::RectF::outline ( CloseRing  closeRing = CloseRing::No) const

長方形の輪郭を LineString として返します。

Parameters
closeRing頂点配列の終点を始点と重ねるかどうか
Returns
長方形の輪郭の LineString

◆ outline() [2/2]

LineString s3d::RectF::outline ( double  distanceFromOrigin,
double  length 
) const

長方形の輪郭の一部を LineString として返します。

Parameters
distanceFromOrigin開始地点の距離(長方形の左上の頂点から時計回りでの距離)
length長さ
Returns
長方形の輪郭の一部の LineString

◆ overwrite()

const RectF& s3d::RectF::overwrite ( Image dst,
const Color color 
) const

◆ overwriteFrame()

const RectF& s3d::RectF::overwriteFrame ( Image dst,
int32  innerThickness,
int32  outerThickness,
const Color color 
) const

◆ paint()

const RectF& s3d::RectF::paint ( Image dst,
const Color color 
) const

◆ paintFrame()

const RectF& s3d::RectF::paintFrame ( Image dst,
int32  innerThickness,
int32  outerThickness,
const Color color 
) const

◆ perimeter()

constexpr value_type s3d::RectF::perimeter ( ) const
constexprnoexcept

長方形の周の長さを返します。

Returns
長方形の周の長さ

◆ point()

constexpr position_type s3d::RectF::point ( size_t  index) const
constexpr

◆ right()

constexpr Line s3d::RectF::right ( ) const
constexprnoexcept

長方形の右辺を Line として返します。

Returns
長方形の右辺

◆ rightCenter()

constexpr Vec2 s3d::RectF::rightCenter ( ) const
constexprnoexcept

長方形の右辺の中心座標を返します。

Returns
長方形の右辺の中心座標

◆ rightClicked()

bool s3d::RectF::rightClicked ( ) const
noexcept

長方形が現在のフレームで右クリックされ始めたかを返します。

Returns
長方形が現在のフレームで右クリックされ始めた場合 true, それ以外の場合は false

◆ rightPressed()

bool s3d::RectF::rightPressed ( ) const
noexcept

長方形が右クリックされているかを返します。

Returns
長方形が右クリックされている場合 true, それ以外の場合は false

◆ rightReleased()

bool s3d::RectF::rightReleased ( ) const
noexcept

現在のフレームで長方形への右クリックが離されたかを返します。

Returns
現在のフレームで長方形への右クリックが離された場合 true, それ以外の場合は false

◆ rightX()

constexpr value_type s3d::RectF::rightX ( ) const
constexprnoexcept

長方形の右辺の X 座標を返します。

Returns
長方形の右辺の X 座標

◆ rotated()

Quad s3d::RectF::rotated ( double  angle) const
noexcept

◆ rotatedAt() [1/2]

Quad s3d::RectF::rotatedAt ( double  _x,
double  _y,
double  angle 
) const
noexcept

◆ rotatedAt() [2/2]

Quad s3d::RectF::rotatedAt ( Vec2  _pos,
double  angle 
) const
noexcept

◆ rounded() [1/2]

constexpr RoundRect s3d::RectF::rounded ( double  r) const
constexprnoexcept

◆ rounded() [2/2]

Polygon s3d::RectF::rounded ( double  tl,
double  tr,
double  br,
double  bl 
) const
noexcept

◆ scaled() [1/3]

constexpr RectF s3d::RectF::scaled ( double  s) const
constexprnoexcept

◆ scaled() [2/3]

constexpr RectF s3d::RectF::scaled ( double  sx,
double  sy 
) const
constexprnoexcept

◆ scaled() [3/3]

constexpr RectF s3d::RectF::scaled ( Vec2  s) const
constexprnoexcept

◆ scaledAt() [1/3]

constexpr RectF s3d::RectF::scaledAt ( Vec2  _pos,
double  s 
) const
constexprnoexcept

◆ scaledAt() [2/3]

constexpr RectF s3d::RectF::scaledAt ( Vec2  _pos,
double  sx,
double  sy 
) const
constexprnoexcept

◆ scaledAt() [3/3]

constexpr RectF s3d::RectF::scaledAt ( Vec2  _pos,
Vec2  s 
) const
constexprnoexcept

◆ set() [1/35]

constexpr RectF& s3d::RectF::set ( Arg::bottomCenter_< position_type bottomCenter,
size_type  _size 
)
constexprnoexcept

◆ set() [2/35]

constexpr RectF& s3d::RectF::set ( Arg::bottomCenter_< position_type bottomCenter,
value_type  _size 
)
constexprnoexcept

◆ set() [3/35]

constexpr RectF& s3d::RectF::set ( Arg::bottomCenter_< position_type bottomCenter,
value_type  _w,
value_type  _h 
)
constexprnoexcept

◆ set() [4/35]

constexpr RectF& s3d::RectF::set ( Arg::bottomLeft_< position_type bottomLeft,
size_type  _size 
)
constexprnoexcept

◆ set() [5/35]

constexpr RectF& s3d::RectF::set ( Arg::bottomLeft_< position_type bottomLeft,
value_type  _size 
)
constexprnoexcept

◆ set() [6/35]

constexpr RectF& s3d::RectF::set ( Arg::bottomLeft_< position_type bottomLeft,
value_type  _w,
value_type  _h 
)
constexprnoexcept

◆ set() [7/35]

constexpr RectF& s3d::RectF::set ( Arg::bottomRight_< position_type bottomRight,
size_type  _size 
)
constexprnoexcept

◆ set() [8/35]

constexpr RectF& s3d::RectF::set ( Arg::bottomRight_< position_type bottomRight,
value_type  _size 
)
constexprnoexcept

◆ set() [9/35]

constexpr RectF& s3d::RectF::set ( Arg::bottomRight_< position_type bottomRight,
value_type  _w,
value_type  _h 
)
constexprnoexcept

◆ set() [10/35]

constexpr RectF& s3d::RectF::set ( Arg::center_< position_type _center,
size_type  _size 
)
constexprnoexcept

◆ set() [11/35]

constexpr RectF& s3d::RectF::set ( Arg::center_< position_type _center,
value_type  _size 
)
constexprnoexcept

◆ set() [12/35]

constexpr RectF& s3d::RectF::set ( Arg::center_< position_type _center,
value_type  _w,
value_type  _h 
)
constexprnoexcept

◆ set() [13/35]

constexpr RectF& s3d::RectF::set ( Arg::leftCenter_< position_type leftCenter,
size_type  _size 
)
constexprnoexcept

◆ set() [14/35]

constexpr RectF& s3d::RectF::set ( Arg::leftCenter_< position_type leftCenter,
value_type  _size 
)
constexprnoexcept

◆ set() [15/35]

constexpr RectF& s3d::RectF::set ( Arg::leftCenter_< position_type leftCenter,
value_type  _w,
value_type  _h 
)
constexprnoexcept

◆ set() [16/35]

constexpr RectF& s3d::RectF::set ( Arg::rightCenter_< position_type rightCenter,
size_type  _size 
)
constexprnoexcept

◆ set() [17/35]

constexpr RectF& s3d::RectF::set ( Arg::rightCenter_< position_type rightCenter,
value_type  _size 
)
constexprnoexcept

◆ set() [18/35]

constexpr RectF& s3d::RectF::set ( Arg::rightCenter_< position_type rightCenter,
value_type  _w,
value_type  _h 
)
constexprnoexcept

◆ set() [19/35]

constexpr RectF& s3d::RectF::set ( Arg::topCenter_< position_type topCenter,
size_type  _size 
)
constexprnoexcept

◆ set() [20/35]

constexpr RectF& s3d::RectF::set ( Arg::topCenter_< position_type topCenter,
value_type  _size 
)
constexprnoexcept

◆ set() [21/35]

constexpr RectF& s3d::RectF::set ( Arg::topCenter_< position_type topCenter,
value_type  _w,
value_type  _h 
)
constexprnoexcept

◆ set() [22/35]

constexpr RectF& s3d::RectF::set ( Arg::topLeft_< position_type topLeft,
size_type  _size 
)
constexprnoexcept

◆ set() [23/35]

constexpr RectF& s3d::RectF::set ( Arg::topLeft_< position_type topLeft,
value_type  _size 
)
constexprnoexcept

◆ set() [24/35]

constexpr RectF& s3d::RectF::set ( Arg::topLeft_< position_type topLeft,
value_type  _w,
value_type  _h 
)
constexprnoexcept

◆ set() [25/35]

constexpr RectF& s3d::RectF::set ( Arg::topRight_< position_type topRight,
size_type  _size 
)
constexprnoexcept

◆ set() [26/35]

constexpr RectF& s3d::RectF::set ( Arg::topRight_< position_type topRight,
value_type  _size 
)
constexprnoexcept

◆ set() [27/35]

constexpr RectF& s3d::RectF::set ( Arg::topRight_< position_type topRight,
value_type  _w,
value_type  _h 
)
constexprnoexcept

◆ set() [28/35]

constexpr RectF& s3d::RectF::set ( const Rect r)
constexprnoexcept

◆ set() [29/35]

constexpr RectF& s3d::RectF::set ( const RectF r)
constexprnoexcept

◆ set() [30/35]

constexpr RectF& s3d::RectF::set ( position_type  _pos,
size_type  _size 
)
constexprnoexcept

◆ set() [31/35]

constexpr RectF& s3d::RectF::set ( position_type  _pos,
value_type  _size 
)
constexprnoexcept

◆ set() [32/35]

constexpr RectF& s3d::RectF::set ( position_type  _pos,
value_type  _w,
value_type  _h 
)
constexprnoexcept

◆ set() [33/35]

constexpr RectF& s3d::RectF::set ( value_type  _x,
value_type  _y,
size_type  _size 
)
constexprnoexcept

◆ set() [34/35]

constexpr RectF& s3d::RectF::set ( value_type  _x,
value_type  _y,
value_type  _size 
)
constexprnoexcept

◆ set() [35/35]

constexpr RectF& s3d::RectF::set ( value_type  _x,
value_type  _y,
value_type  _w,
value_type  _h 
)
constexprnoexcept

◆ setCenter() [1/2]

constexpr RectF& s3d::RectF::setCenter ( position_type  _pos)
constexprnoexcept

◆ setCenter() [2/2]

constexpr RectF& s3d::RectF::setCenter ( value_type  _x,
value_type  _y 
)
constexprnoexcept

◆ setPos() [1/11]

constexpr RectF& s3d::RectF::setPos ( Arg::bottomCenter_< position_type bottomCenter)
constexprnoexcept

◆ setPos() [2/11]

constexpr RectF& s3d::RectF::setPos ( Arg::bottomLeft_< position_type bottomLeft)
constexprnoexcept

◆ setPos() [3/11]

constexpr RectF& s3d::RectF::setPos ( Arg::bottomRight_< position_type bottomRight)
constexprnoexcept

◆ setPos() [4/11]

constexpr RectF& s3d::RectF::setPos ( Arg::center_< position_type _center)
constexprnoexcept

◆ setPos() [5/11]

constexpr RectF& s3d::RectF::setPos ( Arg::leftCenter_< position_type leftCenter)
constexprnoexcept

◆ setPos() [6/11]

constexpr RectF& s3d::RectF::setPos ( Arg::rightCenter_< position_type rightCenter)
constexprnoexcept

◆ setPos() [7/11]

constexpr RectF& s3d::RectF::setPos ( Arg::topCenter_< position_type topCenter)
constexprnoexcept

◆ setPos() [8/11]

constexpr RectF& s3d::RectF::setPos ( Arg::topLeft_< position_type topLeft)
constexprnoexcept

◆ setPos() [9/11]

constexpr RectF& s3d::RectF::setPos ( Arg::topRight_< position_type topRight)
constexprnoexcept

◆ setPos() [10/11]

constexpr RectF& s3d::RectF::setPos ( position_type  _pos)
constexprnoexcept

◆ setPos() [11/11]

constexpr RectF& s3d::RectF::setPos ( value_type  _x,
value_type  _y 
)
constexprnoexcept

◆ setSize() [1/3]

constexpr RectF& s3d::RectF::setSize ( size_type  _size)
constexprnoexcept

◆ setSize() [2/3]

constexpr RectF& s3d::RectF::setSize ( value_type  _size)
constexprnoexcept

◆ setSize() [3/3]

constexpr RectF& s3d::RectF::setSize ( value_type  _w,
value_type  _h 
)
constexprnoexcept

◆ shearedX()

constexpr Quad s3d::RectF::shearedX ( double  vx) const
constexprnoexcept

◆ shearedY()

constexpr Quad s3d::RectF::shearedY ( double  vy) const
constexprnoexcept

◆ side()

constexpr Line s3d::RectF::side ( size_t  index) const
constexpr

◆ stretched() [1/4]

constexpr RectF s3d::RectF::stretched ( size_type  xy) const
constexprnoexcept

◆ stretched() [2/4]

constexpr RectF s3d::RectF::stretched ( value_type  _x,
value_type  _y 
) const
constexprnoexcept

◆ stretched() [3/4]

constexpr RectF s3d::RectF::stretched ( value_type  top,
value_type  right,
value_type  bottom,
value_type  left 
) const
constexprnoexcept

◆ stretched() [4/4]

constexpr RectF s3d::RectF::stretched ( value_type  xy) const
constexprnoexcept

◆ tl()

constexpr size_type s3d::RectF::tl ( ) const
constexprnoexcept

長方形の左上の座標を返します。

Returns
長方形の左上の座標

◆ top()

constexpr Line s3d::RectF::top ( ) const
constexprnoexcept

長方形の上辺を Line として返します。

Returns
長方形の上辺

◆ topCenter()

constexpr Vec2 s3d::RectF::topCenter ( ) const
constexprnoexcept

長方形の上辺の中心座標を返します。

Returns
長方形の上辺の中心座標

◆ topY()

constexpr value_type s3d::RectF::topY ( ) const
constexprnoexcept

長方形の上辺の Y 座標を返します。

Returns
長方形の上辺の Y 座標

◆ tr()

constexpr size_type s3d::RectF::tr ( ) const
constexprnoexcept

長方形の右上の座標を返します。

Returns
長方形の右上の座標

◆ triangle()

constexpr Triangle s3d::RectF::triangle ( size_t  index) const
constexpr

Friends And Related Function Documentation

◆ Formatter

void Formatter ( FormatData formatData,
const RectF value 
)
friend

◆ operator!=

constexpr friend bool operator!= ( const RectF lhs,
const RectF rhs 
)
friend

◆ operator<<

template<class CharType >
std::basic_ostream<CharType>& operator<< ( std::basic_ostream< CharType > &  output,
const RectF value 
)
friend

◆ operator==

constexpr friend bool operator== ( const RectF lhs,
const RectF rhs 
)
friend

◆ operator>>

template<class CharType >
std::basic_istream<CharType>& operator>> ( std::basic_istream< CharType > &  input,
RectF value 
)
friend

Member Data Documentation

◆ @70

union { ... }

◆ @72

union { ... }

◆ h

value_type s3d::RectF::h

長方形の高さ

Remarks
この値が負の時の挙動は未規定です。

◆ pos

position_type s3d::RectF::pos

長方形の左上の点の位置

◆ size

size_type s3d::RectF::size

長方形のサイズ

◆ w

value_type s3d::RectF::w

長方形の幅

Remarks
この値が負の時の挙動は未規定です。

◆ x

value_type s3d::RectF::x

長方形の左上の点の X 座標

◆ y

value_type s3d::RectF::y

長方形の左上の点の Y 座標


The documentation for this struct was generated from the following file: