|
| Vec (T x_in, T y_in) |
|
| Vec (const Vec< 3, T > &v) |
|
| Vec (const T &s) |
|
template<class T2 > |
| Vec (const Vec< 2, T2 > &v) |
|
template<class T2 > |
| Vec (const T2 *v) |
|
T | length2 () const |
|
T | length () const |
|
T | norm () const |
|
T | distance2 (const thisclass &rhs) const |
|
thisclass & | normalize () |
|
thisclass & | operator+= (const thisclass &v) |
|
thisclass & | operator-= (const thisclass &v) |
|
thisclass & | operator*= (const thisclass &v) |
|
thisclass & | operator/= (const thisclass &v) |
|
template<class T2 > |
thisclass & | operator*= (T2 s) |
|
template<class T2 > |
thisclass & | operator/= (T2 s) |
|
thisclass | operator+ (const thisclass &v) const |
|
thisclass | operator- (const thisclass &v) const |
|
template<class T2 > |
thisclass | operator* (T2 s) const |
|
template<class T2 > |
thisclass | operator/ (T2 s) const |
|
thisclass | operator- () const |
|
size_t | dimension () const |
|
size_t | size () const |
|
T * | data () |
|
const T * | data () const |
|
| operator const T * () const |
|
| operator T* () |
|
template<class T>
class easy3d::Vec< 2, T >
A 2D vector (used for representing 2D points or vectors).
- Template Parameters
-
T | The scalar type of vector elements. |