Common Library  0.9.5
coord.h ファイル

座標定義用ヘッダ [詳解]

データ構造

struct  tadah_fussy::Coord< T >
 座標定義用構造体(2D用) [詳解]
 
struct  tadah_fussy::coord_lib::Less
 座標どうしの大小比較 ( Less ) 用関数オブジェクト [詳解]
 

名前空間

 tadah_fussy
 作成者 tadah_fussy
 
 tadah_fussy::coord_lib
 座標計算関数用名前空間
 

関数

template<class T >
std::ostream & tadah_fussy::operator<< (std::ostream &os, const Coord< T > &c)
 ストリーム出力 [詳解]
 
template<class U , class T >
Coord< U > tadah_fussy::coord_lib::Convert (const Coord< T > &c)
 異なる型の座標へ変換する [詳解]
 
template<class T >
tadah_fussy::coord_lib::AbsDiff (const T &t1, const T &t2)
 二数の差の絶対値を返す [詳解]
 
template<class D , class T >
tadah_fussy::coord_lib::Distance (Coord< T > c1, Coord< T > c2)
 距離(ノルム)の計算 [詳解]
 
template<class T >
void tadah_fussy::coord_lib::Diff (Coord< T > c1, Coord< T > c2, Coord< T > *diff)
 二座標間の差分(絶対値)を求める [詳解]
 
template<class T >
void tadah_fussy::coord_lib::Sign (Coord< T > s, Coord< T > e, Coord< int8_t > *sign)
 二座標 s, e 間の直線の向きを求める [詳解]
 
template<class D , class T >
tadah_fussy::coord_lib::Gradient (Coord< T > c0, Coord< T > c1, bool rotate=false)
 傾きを返す [詳解]
 
template<class D , class T >
tadah_fussy::coord_lib::Intercept (Coord< T > c0, Coord< T > c1, bool rotate=false, T axis=0)
 切片を返す [詳解]
 

詳解

座標定義用ヘッダ

二次元座標を表すクラスと専用の関数群からなるライブラリ

著者
tadah_fussy
日付
2016/06/13 DrawingMethod.h から分離
2019/03/27 コメントの見直し
2021/03/13 名前空間の変更、Less, Convert, AbsDiff の追加
2021/04/02 文字コードを UTF-8 に変更