2次元平面上の位置ベクトル [詳解]
#include "geo.hpp"
公開メンバ関数 | |
Point ()=default | |
Point (Real x, Real y) | |
Point | operator+ (const Point &p) const |
Point | operator- (const Point &p) const |
Point | operator* (Real k) const |
Point | operator/ (Real k) const |
Real | dot (const Point &p) const |
p との内積を返す | |
Real | cross (const Point &p) const |
p との外積を返す | |
Real | cross (const Point &p1, const Point &p2) const |
p1 と p2 を端点とするベクトルとの外積を返す | |
Real | norm () const |
2乗ノルムを返す | |
Real | abs () const |
ユークリッドノルムを返す | |
Real | arg () const |
偏角を返す | |
bool | operator== (const Point &p) const |
公開変数類 | |
Real | x |
Real | y |
フレンド | |
istream & | operator>> (istream &is, Point &p) |
|
default |
|
inline |
参照先 Geometry::almostEqual(), x, y.