|
SIV3D_NODISCARD_CXX20 | Point ()=default |
|
SIV3D_NODISCARD_CXX20 | Point (const Point &)=default |
|
constexpr SIV3D_NODISCARD_CXX20 | Point (value_type _x, value_type _y) noexcept |
|
template<class IntegerX , class IntegerY , std::enable_if_t< std::conjunction_v< std::is_integral< IntegerX >, std::is_integral< IntegerY >>> * = nullptr> |
constexpr SIV3D_NODISCARD_CXX20 | Point (IntegerX _x, IntegerY _y) noexcept |
|
template<class X , class Y , std::enable_if_t<(not std::is_integral_v< X >)||(not std::is_integral_v< Y >)> * = nullptr> |
constexpr | Point (X _x, Y _y) noexcept=delete |
|
constexpr value_type | elem (size_t index) const noexcept |
|
value_type * | getPointer () noexcept |
|
const value_type * | getPointer () const noexcept |
|
constexpr Point & | operator= (const Point &)=default |
|
constexpr Point | operator+ () const noexcept |
|
constexpr Point | operator- () const noexcept |
|
constexpr Point | operator+ (Point p) const noexcept |
|
constexpr Point | operator- (Point p) const noexcept |
|
template<class Type > |
constexpr Vector2D< Type > | operator+ (Vector2D< Type > v) const noexcept |
|
template<class Type > |
constexpr Vector2D< Type > | operator- (Vector2D< Type > v) const noexcept |
|
constexpr Point | operator* (int32 s) const noexcept |
|
constexpr Float2 | operator* (float s) const noexcept |
|
constexpr Vec2 | operator* (double s) const noexcept |
|
constexpr Point | operator* (Point p) const noexcept |
|
template<class Type > |
constexpr Vector2D< Type > | operator* (Vector2D< Type > v) const noexcept |
|
constexpr Point | operator/ (int32 s) const noexcept |
|
constexpr Float2 | operator/ (float s) const noexcept |
|
constexpr Vec2 | operator/ (double s) const noexcept |
|
constexpr Point | operator/ (Point p) const noexcept |
|
template<class Type > |
constexpr Vector2D< Type > | operator/ (Vector2D< Type > v) const noexcept |
|
constexpr Point & | operator+= (Point p) noexcept |
|
constexpr Point & | operator-= (Point p) noexcept |
|
constexpr Point & | operator*= (int32 s) noexcept |
|
constexpr Point & | operator/= (int32 s) noexcept |
|
constexpr bool | isZero () const noexcept |
|
constexpr value_type | minComponent () const noexcept |
|
constexpr value_type | maxComponent () const noexcept |
|
constexpr void | clear () noexcept |
|
constexpr Point & | set (int32 _x, int32 _y) noexcept |
|
constexpr Point & | set (Point p) noexcept |
|
constexpr Point | movedBy (int32 _x, int32 _y) const noexcept |
|
constexpr Point | movedBy (Point p) const noexcept |
|
template<class Type > |
constexpr Vector2D< Type > | movedBy (Vector2D< Type > v) const noexcept |
|
constexpr Point & | moveBy (int32 _x, int32 _y) noexcept |
|
constexpr Point & | moveBy (Point p) noexcept |
|
template<class Type = double> |
constexpr Type | horizontalAspectRatio () const noexcept |
|
template<class Type = double> |
Type | length () const noexcept |
| ベクトルの大きさ(長さ)を返します。 More...
|
|
template<class Type = double> |
constexpr Type | lengthSq () const noexcept |
| ベクトルの大きさ(長さ)の二乗を返します。 More...
|
|
constexpr int32 | manhattanLength () const noexcept |
| 原点からこの座標までのマンハッタン距離を返します。 More...
|
|
constexpr int32 | manhattanDistanceFrom (int32 _x, int32 _y) const noexcept |
| 別の位置ベクトルからのマンハッタン距離を返します。 More...
|
|
constexpr int32 | manhattanDistanceFrom (Point p) const noexcept |
| 別の座標からのマンハッタン距離を返します。 More...
|
|
double | distanceFrom (double _x, double _y) const noexcept |
| 別の座標からの距離を返します。 More...
|
|
double | distanceFrom (Point p) const noexcept |
| 別の座標からの距離を返します。 More...
|
|
template<class Type > |
double | distanceFrom (Vector2D< Type > p) const noexcept |
| 別の座標からの距離を返します。 More...
|
|
constexpr double | distanceFromSq (double _x, double _y) const noexcept |
| 別の座標からの距離の二乗を返します。 More...
|
|
constexpr double | distanceFromSq (Point p) const noexcept |
| 別の座標からの距離の二乗を返します。 More...
|
|
template<class Type > |
constexpr double | distanceFromSq (Vector2D< Type > p) const noexcept |
| 別の座標からの距離の二乗を返します。 More...
|
|
constexpr int32 | area () const noexcept |
| 幅 x, 高さ y の長方形の面積を返します。 More...
|
|
template<class Type = double> |
Type | getAngle () const noexcept |
|
template<class Type > |
Type | getAngle (Vector2D< Type > other) const noexcept |
|
constexpr Point | getPerpendicularCW () const noexcept |
|
constexpr Point | getPerpendicularCCW () const noexcept |
|
template<class Type = double> |
constexpr Vector2D< Type > | getMidpoint (Point other) const noexcept |
|
template<class Type > |
constexpr Vector2D< Type > | getMidpoint (Vector2D< Type > other) const noexcept |
|
template<class T , class U > |
auto | getPointByAngleAndDistance (T angle, U distance) const noexcept |
|
template<class Type = double> |
constexpr Vector2D< Type > | lerp (Point other, double f) const noexcept |
|
template<class Type > |
constexpr Vector2D< Type > | lerp (Vector2D< Type > other, double f) const noexcept |
|
Circle | asCircle (double r) const noexcept |
|
template<class Shape2DType > |
constexpr bool | intersects (const Shape2DType &other) const |
|
bool | leftClicked () const noexcept |
|
bool | leftPressed () const noexcept |
|
bool | leftReleased () const noexcept |
|
bool | rightClicked () const noexcept |
|
bool | rightPressed () const noexcept |
|
bool | rightReleased () const noexcept |
|
bool | mouseOver () const noexcept |
|
const Point & | paint (Image &dst, const Color &color) const |
|
const Point & | overwrite (Image &dst, const Color &color) const |
|
size_t | hash () const noexcept |
|
constexpr Point | xx () const noexcept |
| Point{ x, x } を返します。 More...
|
|
constexpr Point | xy () const noexcept |
| Point{ x, y } を返します。 More...
|
|
constexpr Point | yx () const noexcept |
| Point{ y x } を返します。 More...
|
|
constexpr Point | yy () const noexcept |
| Point{ y, y } を返します。 More...
|
|
constexpr Point | x0 () const noexcept |
| Point{ x, 0 } を返します。 More...
|
|
constexpr Point | y0 () const noexcept |
| Point{ y, 0 } を返します。 More...
|
|