データ構造 | 関数
ベクトルライブラリ

データ構造

class  mist::vector3< T >
 3次元ベクトルを扱うクラス [詳細]
class  mist::vector2< T >
 2次元ベクトルを扱うクラス [詳細]
class  mist::vector< T, Allocator >
 N次元ベクトルを扱うクラス [詳細]

関数

template<class T1 , class T2 >
promote_trait< T1, T2 >::value_type mist::operator^ (const vector3< T1 > &v1, const vector3< T2 > &v2)
 ベクトルの内積
template<class T >
std::ostream & mist::operator<< (std::ostream &out, const vector3< T > &v)
 ベクトルの和
template<class T >
std::istream & mist::operator>> (std::istream &in, vector3< T > &v)
 Method for reading the vector comma separated from an istream.
template<class T1 , class T2 >
promote_trait< T1, T2 >::value_type mist::operator^ (const vector2< T1 > &v1, const vector2< T2 > &v2)
 ベクトルの内積
template<class T1 , class T2 >
promote_trait< T1, T2 >::value_type mist::operator* (const vector2< T1 > &v1, const vector2< T2 > &v2)
 ベクトルの外積
template<class T >
std::ostream & mist::operator<< (std::ostream &out, const vector2< T > &v)
 ベクトルの和
template<class T >
std::istream & mist::operator>> (std::istream &in, vector2< T > &v)
 Method for reading the vector comma separated from an istream.
template<class T , class Allocator >
inline::std::ostream & mist::operator<< (::std::ostream &out, const vector< T, Allocator > &v)
 指定されたストリームに,行列内の要素を整形して出力する
template<class T , class Allocator >
vector< T, Allocator > mist::operator* (const vector< T, Allocator > &v1, const vector< T, Allocator > &v2)
 ベクトルの外積を計算する

説明

次のヘッダをインクルードする
#include <mist/vector.h>

関数

template<class T , class Allocator >
vector< T, Allocator > mist::operator* ( const vector< T, Allocator > &  v1,
const vector< T, Allocator > &  v2 
)
inline

ベクトルの外積を計算する

注意
外積を計算する2つのベクトルの次元が等しくなくてはならない
引数
[in]v1… 左辺値ベクトル
[in]v2… 右辺値ベクトル
戻り値
外積結果
template<class T >
std::ostream& mist::operator<< ( std::ostream &  out,
const vector3< T > &  v 
)
inline

ベクトルの和

ベクトルの差 ベクトルの外積 ベクトルと定数の積 定数とベクトルの積 ベクトルを定数で割る 指定されたストリームに,コンテナ内の要素を整形して出力する

引数
[in,out]out… 入力と出力を行うストリーム
[in]v… 3次元ベクトル
戻り値
入力されたストリーム
出力例
( 1, 2, 3 )
template<class T >
std::ostream& mist::operator<< ( std::ostream &  out,
const vector2< T > &  v 
)
inline

ベクトルの和

ベクトルの差 ベクトルと定数の積 定数とベクトルの積 ベクトルを定数で割る 指定されたストリームに,コンテナ内の要素を整形して出力する

引数
[in,out]out… 入力と出力を行うストリーム
[in]v… 2次元ベクトル
戻り値
入力されたストリーム
出力例
( 1, 2 )
template<class T , class Allocator >
inline ::std::ostream& mist::operator<< ( ::std::ostream &  out,
const vector< T, Allocator > &  v 
)

指定されたストリームに,行列内の要素を整形して出力する

引数
[in,out]out… 入力と出力を行うストリーム
[in]v… 出力する行列
戻り値
入力されたストリーム
出力例
1, 2, 3, 4

参照先 mist::array< T, Allocator >::size().

template<class T >
std::istream& mist::operator>> ( std::istream &  in,
vector3< T > &  v 
)
inline

Method for reading the vector comma separated from an istream.

引数
[in,out]in… input stream
[out]v… 3-dimensional vector
戻り値
the input stream
Marco Feuerstein
( 1, 2, 3 )

参照先 mist::vector3< T >::x, mist::vector3< T >::y, と mist::vector3< T >::z.

template<class T >
std::istream& mist::operator>> ( std::istream &  in,
vector2< T > &  v 
)
inline

Method for reading the vector comma separated from an istream.

引数
[in,out]in… input stream
[out]v… 2-dimensional vector
戻り値
the input stream
Marco Feuerstein
( 1, 2 )

参照先 mist::vector2< T >::x, と mist::vector2< T >::y.


Generated on Wed Nov 12 2014 19:44:28 for MIST by doxygen 1.8.1.2