Rosetta 3.3
|
Fast (x,y,z)-coordinate vector container. More...
#include <xyzTriple.hh>
Public Types | |
typedef T | Value |
typedef T & | Reference |
typedef T const & | ConstReference |
typedef T * | Pointer |
typedef T const * | ConstPointer |
typedef T | value_type |
typedef T & | reference |
typedef T const & | const_reference |
typedef T * | pointer |
typedef T const * | const_pointer |
typedef void | iterator_category |
typedef void | difference_type |
Public Member Functions | |
xyzTriple () | |
Default constructor. | |
xyzTriple (xyzTriple const &v) | |
Copy constructor. | |
template<typename U > | |
xyzTriple (xyzTriple< U > const &v) | |
Copy constructor. | |
xyzTriple (Value const &t) | |
Uniform value constructor. | |
xyzTriple (Value const &x_a, Value const &y_a, Value const &z_a) | |
Triple value constructor. | |
template<typename U > | |
xyzTriple (U const *p) | |
Pointer to contiguous values constructor. | |
~xyzTriple () | |
Destructor. | |
xyzTriple & | operator= (xyzTriple const &v) |
Copy assignment. | |
template<typename U > | |
xyzTriple & | operator= (xyzTriple< U > const &v) |
Copy assignment. | |
template<typename U > | |
xyzTriple & | operator= (U const *p) |
Assignment from pointer to contiguous values. | |
template<typename U > | |
xyzTriple & | operator+= (xyzTriple< U > const &v) |
+= xyzTriple | |
template<typename U > | |
xyzTriple & | operator-= (xyzTriple< U > const &v) |
-= xyzTriple | |
template<typename U > | |
xyzTriple & | scaled_assign (Value const &t, xyzTriple< U > const &v) |
Assign Value * xyzTriple. | |
template<typename U > | |
xyzTriple & | scaled_add (Value const &t, xyzTriple< U > const &v) |
Add Value * xyzTriple. | |
template<typename U > | |
xyzTriple & | scaled_sub (Value const &t, xyzTriple< U > const &v) |
Subtract Value * xyzTriple. | |
xyzTriple & | operator= (Value const &t) |
= Value | |
xyzTriple & | operator+= (Value const &t) |
+= Value | |
xyzTriple & | operator-= (Value const &t) |
-= Value | |
xyzTriple & | operator*= (Value const &t) |
*= Value | |
xyzTriple & | operator/= (Value const &t) |
/= Value | |
xyzTriple & | assign (Value const &x_a, Value const &y_a, Value const &z_a) |
Triple value assignment. | |
xyzTriple & | clear () |
Clear. | |
xyzTriple & | zero () |
Zero. | |
xyzTriple & | negate () |
Negate. | |
xyzTriple | operator- () const |
-xyzTriple (negated copy) | |
xyzTriple | negated () const |
Negated copy. | |
void | negated (xyzTriple &a) const |
Negated: Return via argument (slightly faster) | |
xyzTriple & | min (xyzTriple const &v) |
Set minimum coordinates wrt another xyzTriple. | |
xyzTriple & | max (xyzTriple const &v) |
Set maximum coordinates wrt another xyzTriple. | |
xyzTriple & | normalize () |
Normalize. | |
void | normalized (xyzTriple &a) const |
Normalized. | |
xyzTriple & | normalize_or_zero () |
Normalize: zero xyzTriple if length is zero. | |
void | normalized_or_zero (xyzTriple &a) const |
Normalized: zero xyzTriple if length is zero. | |
xyzTriple & | normalize_any () |
Normalize: arbitrary normalized xyzTriple if length is zero. | |
void | normalized_any (xyzTriple &a) const |
Normalized: arbitrary normalized xyzTriple if length is zero. | |
xyzTriple & | normalize (Value const &length_a) |
Normalize to a length. | |
void | normalized (Value const &length_a, xyzTriple &a) const |
Normalized to a length. | |
xyzTriple & | normalize_or_zero (Value const &length_a) |
Normalize to a length: zero xyzTriple if length is zero. | |
void | normalized_or_zero (Value const &length_a, xyzTriple &a) const |
Normalized to a length: zero xyzTriple if length is zero. | |
xyzTriple & | normalize_any (Value const &length_a) |
Normalize to a length: arbitrary normalized xyzTriple if length is zero. | |
void | normalized_any (Value const &length_a, xyzTriple &a) const |
Normalized to a length: arbitrary normalized xyzTriple if length is zero. | |
xyzTriple | normalized () const |
Normalized copy. | |
xyzTriple | normalized_or_zero () const |
Normalized copy: Zero xyzTriple if length is zero. | |
xyzTriple | normalized_any () const |
Normalized copy: Arbitrary normalized xyzTriple if length is zero. | |
xyzTriple | normalized (Value const &length_a) const |
Normalized to a length copy. | |
xyzTriple | normalized_or_zero (Value const &length_a) const |
Normalized to a length copy: Zero xyzTriple if length is zero. | |
xyzTriple | normalized_any (Value const &length_a) const |
Normalized to a length copy: Arbitrary normalized xyzTriple if length is zero. | |
xyzTriple & | project_normal (xyzTriple const &v) |
Project normal. | |
xyzTriple | projected_normal (xyzTriple const &v) const |
Projected normal copy. | |
void | projected_normal (xyzTriple const &v, xyzTriple &a) const |
Projected normal. | |
xyzTriple & | project_parallel (xyzTriple const &v) |
Project parallel. | |
xyzTriple | projected_parallel (xyzTriple const &v) const |
Projected parallel copy. | |
void | projected_parallel (xyzTriple const &v, xyzTriple &a) |
Projected parallel. | |
Value | distance (xyzTriple const &v) const |
Distance. | |
Value | distance_squared (xyzTriple const &v) const |
Distance squared. | |
Value | dot (xyzTriple const &v) const |
Dot product. | |
Value | dot_product (xyzTriple const &v) const |
Dot product. | |
Value | inner_product (xyzTriple const &v) const |
Inner product ( == dot product ) | |
xyzTriple | cross (xyzTriple const &v) const |
Cross product. | |
xyzTriple | cross_product (xyzTriple const &v) const |
Cross product. | |
bool | is_zero () const |
Is zero? | |
bool | is_normalized () const |
Is exactly normalized? | |
bool | is_normalized (Value const &tol) const |
Is normalized to within a tolerance? | |
bool | is_unit () const |
Is exactly a unit vector? | |
bool | is_unit (Value const &tol) const |
Is a unit vector to within a tolerance? | |
Value const & | x () const |
Value x const. | |
Value & | x () |
Value x. | |
Value const & | y () const |
Value y const. | |
Value & | y () |
Value y. | |
Value const & | z () const |
Value z const. | |
Value & | z () |
Value z. | |
Value | length () const |
Length. | |
Value | length_squared () const |
Length squared. | |
Value | norm () const |
Norm. | |
Value | norm_squared () const |
Norm squared. | |
Value | magnitude () const |
Magnitude. | |
Value | magnitude_squared () const |
Magnitude squared. | |
void | x (Value const &x_a) |
x assignment | |
void | y (Value const &y_a) |
y assignment | |
void | z (Value const &z_a) |
z assignment | |
Value const & | operator[] (int const i) const |
xyzTriple[ i ] const: 0-based index | |
Value & | operator[] (int const i) |
xyzTriple[ i ]: 0-based index | |
Value const & | operator() (int const i) const |
xyzTriple( i ) const: 1-based index | |
Value & | operator() (int const i) |
xyzTriple( i ): 1-based index | |
bool | equal_length (xyzTriple const &v) |
Equal length? | |
bool | not_equal_length (xyzTriple const &v) |
Not equal length? | |
bool | longer (xyzTriple const &v) |
Longer? | |
bool | longer_or_equal (xyzTriple const &v) |
Longer or equal length? | |
bool | shorter (xyzTriple const &v) |
Shorter? | |
bool | shorter_or_equal (xyzTriple const &v) |
Shorter or equal length? | |
Friends | |
class | xyzTriple |
xyzTriple | operator+ (xyzTriple const &a, xyzTriple const &b) |
xyzTriple + xyzTriple | |
xyzTriple | operator+ (xyzTriple const &v, Value const &t) |
xyzTriple + Value | |
xyzTriple | operator+ (Value const &t, xyzTriple const &v) |
Value + xyzTriple. | |
xyzTriple | operator- (xyzTriple const &a, xyzTriple const &b) |
xyzTriple - xyzTriple | |
xyzTriple | operator- (xyzTriple const &v, Value const &t) |
xyzTriple - Value | |
xyzTriple | operator- (Value const &t, xyzTriple const &v) |
Value - xyzTriple. | |
xyzTriple | operator* (xyzTriple const &v, Value const &t) |
xyzTriple * Value | |
xyzTriple | operator* (Value const &t, xyzTriple const &v) |
Value * xyzTriple. | |
xyzTriple | operator/ (xyzTriple const &v, Value const &t) |
xyzTriple / Value | |
void | add (xyzTriple const &a, xyzTriple const &b, xyzTriple &r) |
Add: xyzTriple + xyzTriple. | |
void | add (xyzTriple const &v, Value const &t, xyzTriple &r) |
Add: xyzTriple + Value. | |
void | add (Value const &t, xyzTriple const &v, xyzTriple &r) |
Add: Value + xyzTriple. | |
void | subtract (xyzTriple const &a, xyzTriple const &b, xyzTriple &r) |
Subtract: xyzTriple - xyzTriple. | |
void | subtract (xyzTriple const &v, Value const &t, xyzTriple &r) |
Subtract: xyzTriple - Value. | |
void | subtract (Value const &t, xyzTriple const &v, xyzTriple &r) |
Subtract: Value - xyzTriple. | |
void | multiply (xyzTriple const &v, Value const &t, xyzTriple &r) |
Multiply: xyzTriple * Value. | |
void | multiply (Value const &t, xyzTriple const &v, xyzTriple &r) |
Multiply: Value * xyzTriple. | |
void | divide (xyzTriple const &v, Value const &t, xyzTriple &r) |
Divide: xyzTriple / Value. | |
xyzTriple | min (xyzTriple const &a, xyzTriple const &b) |
xyzTriple with min coordinates of two xyzTriples | |
xyzTriple | max (xyzTriple const &a, xyzTriple const &b) |
xyzTriple with max coordinates of two xyzTriples | |
Value | distance (xyzTriple const &a, xyzTriple const &b) |
Distance. | |
Value | distance_squared (xyzTriple const &a, xyzTriple const &b) |
Distance squared. | |
Value | dot (xyzTriple const &a, xyzTriple const &b) |
Dot product. | |
Value | dot_product (xyzTriple const &a, xyzTriple const &b) |
Dot product. | |
Value | inner_product (xyzTriple const &a, xyzTriple const &b) |
Inner product ( == dot product ) | |
xyzTriple | cross (xyzTriple const &a, xyzTriple const &b) |
Cross product. | |
xyzTriple | cross_product (xyzTriple const &a, xyzTriple const &b) |
Cross product. | |
void | cross (xyzTriple const &a, xyzTriple const &b, xyzTriple &c) |
Cross product: Return via argument (slightly faster) | |
void | cross_product (xyzTriple const &a, xyzTriple const &b, xyzTriple &c) |
Cross product: Return via argument (slightly faster) | |
xyzTriple | midpoint (xyzTriple const &a, xyzTriple const &b) |
Midpoint of 2 xyzTriples. | |
void | midpoint (xyzTriple const &a, xyzTriple const &b, xyzTriple &m) |
Midpoint of 2 xyzTriples: Return via argument (slightly faster) | |
xyzTriple | center (xyzTriple const &a, xyzTriple const &b) |
Center of 2 xyzTriples. | |
void | center (xyzTriple const &a, xyzTriple const &b, xyzTriple &m) |
Center of 2 xyzTriples: Return via argument (slightly faster) | |
xyzTriple | center (xyzTriple const &a, xyzTriple const &b, xyzTriple const &c) |
Center of 3 xyzTriples. | |
void | center (xyzTriple const &a, xyzTriple const &b, xyzTriple const &c, xyzTriple &m) |
Center of 3 xyzTriples: Return via argument (slightly faster) | |
xyzTriple | center (xyzTriple const &a, xyzTriple const &b, xyzTriple const &c, xyzTriple const &d) |
Center of 4 xyzTriples. | |
void | center (xyzTriple const &a, xyzTriple const &b, xyzTriple const &c, xyzTriple const &d, xyzTriple &m) |
Center of 4 xyzTriples: Return via argument (slightly faster) | |
Value | angle_of (xyzTriple const &a, xyzTriple const &b) |
Angle between two vectors (in radians on [ 0, pi ]) | |
Value | angle_of (xyzTriple const &a, xyzTriple const &b, xyzTriple const &c) |
Angle formed by three consecutive points (in radians on [ 0, pi ]) | |
Value | cos_of (xyzTriple const &a, xyzTriple const &b) |
Cosine of angle between two vectors. | |
Value | cos_of (xyzTriple const &a, xyzTriple const &b, xyzTriple const &c) |
Cosine of angle formed by three consecutive points. | |
Value | sin_of (xyzTriple const &a, xyzTriple const &b) |
Sine of angle between two vectors. | |
Value | sin_of (xyzTriple const &a, xyzTriple const &b, xyzTriple const &c) |
Sine of angle formed by three consecutive points. | |
bool | operator== (xyzTriple const &a, xyzTriple const &b) |
xyzTriple == xyzTriple | |
bool | operator!= (xyzTriple const &a, xyzTriple const &b) |
xyzTriple != xyzTriple | |
bool | operator< (xyzTriple const &a, xyzTriple const &b) |
xyzTriple < xyzTriple: Lexicographic order | |
bool | operator<= (xyzTriple const &a, xyzTriple const &b) |
xyzTriple <= xyzTriple | |
bool | operator>= (xyzTriple const &a, xyzTriple const &b) |
xyzTriple >= xyzTriple | |
bool | operator> (xyzTriple const &a, xyzTriple const &b) |
xyzTriple > xyzTriple | |
bool | operator== (xyzTriple const &v, Value const &t) |
xyzTriple == Value | |
bool | operator!= (xyzTriple const &v, Value const &t) |
xyzTriple != Value | |
bool | operator< (xyzTriple const &v, Value const &t) |
xyzTriple < Value | |
bool | operator<= (xyzTriple const &v, Value const &t) |
xyzTriple <= Value | |
bool | operator>= (xyzTriple const &v, Value const &t) |
xyzTriple >= Value | |
bool | operator> (xyzTriple const &v, Value const &t) |
xyzTriple > Value | |
bool | operator== (Value const &t, xyzTriple const &v) |
Value == xyzTriple. | |
bool | operator!= (Value const &t, xyzTriple const &v) |
Value != xyzTriple. | |
bool | operator< (Value const &t, xyzTriple const &v) |
Value < xyzTriple. | |
bool | operator<= (Value const &t, xyzTriple const &v) |
Value <= xyzTriple. | |
bool | operator>= (Value const &t, xyzTriple const &v) |
Value >= xyzTriple. | |
bool | operator> (Value const &t, xyzTriple const &v) |
Value > xyzTriple. | |
bool | equal_length (xyzTriple const &a, xyzTriple const &b) |
Equal length? | |
bool | not_equal_length (xyzTriple const &a, xyzTriple const &b) |
Not equal length? |
Fast (x,y,z)-coordinate vector container.
typedef T const* numeric::xyzTriple< T >::const_pointer |
typedef T const& numeric::xyzTriple< T >::const_reference |
typedef T const* numeric::xyzTriple< T >::ConstPointer |
typedef T const& numeric::xyzTriple< T >::ConstReference |
typedef void numeric::xyzTriple< T >::difference_type |
typedef void numeric::xyzTriple< T >::iterator_category |
typedef T* numeric::xyzTriple< T >::pointer |
typedef T* numeric::xyzTriple< T >::Pointer |
typedef T& numeric::xyzTriple< T >::reference |
typedef T& numeric::xyzTriple< T >::Reference |
typedef T numeric::xyzTriple< T >::Value |
typedef T numeric::xyzTriple< T >::value_type |
numeric::xyzTriple< T >::xyzTriple | ( | ) | [inline] |
Default constructor.
Referenced by numeric::center(), numeric::cross(), numeric::xyzTriple< T >::cross(), numeric::cross_product(), numeric::xyzTriple< T >::cross_product(), numeric::max(), numeric::midpoint(), numeric::min(), numeric::xyzTriple< T >::negated(), numeric::xyzTriple< T >::normalized(), numeric::xyzTriple< T >::normalized_any(), numeric::xyzTriple< T >::normalized_or_zero(), numeric::operator*(), numeric::operator+(), numeric::operator-(), numeric::xyzTriple< T >::operator-(), numeric::operator/(), numeric::xyzTriple< T >::projected_normal(), and numeric::xyzTriple< T >::projected_parallel().
numeric::xyzTriple< T >::xyzTriple | ( | xyzTriple< T > const & | v | ) | [inline] |
Copy constructor.
numeric::xyzTriple< T >::xyzTriple | ( | xyzTriple< U > const & | v | ) | [inline] |
Copy constructor.
numeric::xyzTriple< T >::xyzTriple | ( | Value const & | t | ) | [inline, explicit] |
Uniform value constructor.
numeric::xyzTriple< T >::xyzTriple | ( | Value const & | x_a, |
Value const & | y_a, | ||
Value const & | z_a | ||
) | [inline] |
Triple value constructor.
numeric::xyzTriple< T >::xyzTriple | ( | U const * | p | ) | [inline, explicit] |
Pointer to contiguous values constructor.
numeric::xyzTriple< T >::~xyzTriple | ( | ) | [inline] |
Destructor.
xyzTriple& numeric::xyzTriple< T >::assign | ( | Value const & | x_a, |
Value const & | y_a, | ||
Value const & | z_a | ||
) | [inline] |
Triple value assignment.
xyzTriple& numeric::xyzTriple< T >::clear | ( | ) | [inline] |
Clear.
xyzTriple numeric::xyzTriple< T >::cross | ( | xyzTriple< T > const & | v | ) | const [inline] |
Cross product.
References numeric::xyzTriple< T >::xyzTriple().
xyzTriple numeric::xyzTriple< T >::cross_product | ( | xyzTriple< T > const & | v | ) | const [inline] |
Cross product.
References numeric::xyzTriple< T >::xyzTriple().
Value numeric::xyzTriple< T >::distance | ( | xyzTriple< T > const & | v | ) | const [inline] |
Distance.
References numeric::square().
Value numeric::xyzTriple< T >::distance_squared | ( | xyzTriple< T > const & | v | ) | const [inline] |
Distance squared.
References numeric::square().
Value numeric::xyzTriple< T >::dot | ( | xyzTriple< T > const & | v | ) | const [inline] |
Value numeric::xyzTriple< T >::dot_product | ( | xyzTriple< T > const & | v | ) | const [inline] |
Dot product.
bool numeric::xyzTriple< T >::equal_length | ( | xyzTriple< T > const & | v | ) | [inline] |
Equal length?
References numeric::xyzTriple< T >::length_squared().
Value numeric::xyzTriple< T >::inner_product | ( | xyzTriple< T > const & | v | ) | const [inline] |
Inner product ( == dot product )
bool numeric::xyzTriple< T >::is_normalized | ( | ) | const [inline] |
Is exactly normalized?
References numeric::xyzTriple< T >::length_squared().
bool numeric::xyzTriple< T >::is_normalized | ( | Value const & | tol | ) | const [inline] |
Is normalized to within a tolerance?
References numeric::xyzTriple< T >::length_squared(), and loops_kic::tol.
bool numeric::xyzTriple< T >::is_unit | ( | ) | const [inline] |
Is exactly a unit vector?
References numeric::xyzTriple< T >::length_squared().
bool numeric::xyzTriple< T >::is_unit | ( | Value const & | tol | ) | const [inline] |
Is a unit vector to within a tolerance?
References numeric::xyzTriple< T >::length_squared(), and loops_kic::tol.
bool numeric::xyzTriple< T >::is_zero | ( | ) | const [inline] |
Is zero?
Value numeric::xyzTriple< T >::length | ( | ) | const [inline] |
Length.
Referenced by numeric::angle_of(), numeric::cos_of(), numeric::xyzTriple< T >::normalize(), numeric::xyzTriple< T >::normalize_any(), numeric::xyzTriple< T >::normalize_or_zero(), numeric::xyzTriple< T >::normalized(), numeric::xyzTriple< T >::normalized_any(), and numeric::xyzTriple< T >::normalized_or_zero().
Value numeric::xyzTriple< T >::length_squared | ( | ) | const [inline] |
Length squared.
Referenced by numeric::equal_length(), numeric::xyzTriple< T >::equal_length(), numeric::xyzTriple< T >::is_normalized(), numeric::xyzTriple< T >::is_unit(), numeric::xyzTriple< T >::longer(), numeric::xyzTriple< T >::longer_or_equal(), numeric::not_equal_length(), numeric::xyzTriple< T >::not_equal_length(), numeric::xyzTriple< T >::project_normal(), numeric::xyzTriple< T >::project_parallel(), numeric::xyzTriple< T >::projected_normal(), numeric::xyzTriple< T >::projected_parallel(), numeric::xyzTriple< T >::shorter(), and numeric::xyzTriple< T >::shorter_or_equal().
bool numeric::xyzTriple< T >::longer | ( | xyzTriple< T > const & | v | ) | [inline] |
Longer?
References numeric::xyzTriple< T >::length_squared().
bool numeric::xyzTriple< T >::longer_or_equal | ( | xyzTriple< T > const & | v | ) | [inline] |
Longer or equal length?
References numeric::xyzTriple< T >::length_squared().
Value numeric::xyzTriple< T >::magnitude | ( | ) | const [inline] |
Magnitude.
Value numeric::xyzTriple< T >::magnitude_squared | ( | ) | const [inline] |
Magnitude squared.
xyzTriple& numeric::xyzTriple< T >::max | ( | xyzTriple< T > const & | v | ) | [inline] |
Set maximum coordinates wrt another xyzTriple.
xyzTriple& numeric::xyzTriple< T >::min | ( | xyzTriple< T > const & | v | ) | [inline] |
Set minimum coordinates wrt another xyzTriple.
xyzTriple& numeric::xyzTriple< T >::negate | ( | ) | [inline] |
Negate.
xyzTriple numeric::xyzTriple< T >::negated | ( | ) | const [inline] |
Negated copy.
References numeric::xyzTriple< T >::xyzTriple().
void numeric::xyzTriple< T >::negated | ( | xyzTriple< T > & | a | ) | const [inline] |
Negated: Return via argument (slightly faster)
Value numeric::xyzTriple< T >::norm | ( | ) | const [inline] |
Norm.
Value numeric::xyzTriple< T >::norm_squared | ( | ) | const [inline] |
Norm squared.
xyzTriple& numeric::xyzTriple< T >::normalize | ( | ) | [inline] |
Normalize.
References numeric::xyzTriple< T >::length().
xyzTriple& numeric::xyzTriple< T >::normalize | ( | Value const & | length_a | ) | [inline] |
Normalize to a length.
References numeric::xyzTriple< T >::length().
xyzTriple& numeric::xyzTriple< T >::normalize_any | ( | Value const & | length_a | ) | [inline] |
Normalize to a length: arbitrary normalized xyzTriple if length is zero.
References numeric::xyzTriple< T >::length().
xyzTriple& numeric::xyzTriple< T >::normalize_any | ( | ) | [inline] |
Normalize: arbitrary normalized xyzTriple if length is zero.
References numeric::xyzTriple< T >::length().
xyzTriple& numeric::xyzTriple< T >::normalize_or_zero | ( | ) | [inline] |
Normalize: zero xyzTriple if length is zero.
References numeric::xyzTriple< T >::length().
xyzTriple& numeric::xyzTriple< T >::normalize_or_zero | ( | Value const & | length_a | ) | [inline] |
Normalize to a length: zero xyzTriple if length is zero.
References numeric::xyzTriple< T >::length().
xyzTriple numeric::xyzTriple< T >::normalized | ( | ) | const [inline] |
Normalized copy.
References numeric::xyzTriple< T >::length(), and numeric::xyzTriple< T >::xyzTriple().
xyzTriple numeric::xyzTriple< T >::normalized | ( | Value const & | length_a | ) | const [inline] |
Normalized to a length copy.
References numeric::xyzTriple< T >::length(), and numeric::xyzTriple< T >::xyzTriple().
void numeric::xyzTriple< T >::normalized | ( | xyzTriple< T > & | a | ) | const [inline] |
Normalized.
References numeric::xyzTriple< T >::length().
void numeric::xyzTriple< T >::normalized | ( | Value const & | length_a, |
xyzTriple< T > & | a | ||
) | const [inline] |
Normalized to a length.
References numeric::xyzTriple< T >::length().
void numeric::xyzTriple< T >::normalized_any | ( | Value const & | length_a, |
xyzTriple< T > & | a | ||
) | const [inline] |
Normalized to a length: arbitrary normalized xyzTriple if length is zero.
References numeric::xyzTriple< T >::length().
xyzTriple numeric::xyzTriple< T >::normalized_any | ( | ) | const [inline] |
Normalized copy: Arbitrary normalized xyzTriple if length is zero.
References numeric::xyzTriple< T >::length(), and numeric::xyzTriple< T >::xyzTriple().
xyzTriple numeric::xyzTriple< T >::normalized_any | ( | Value const & | length_a | ) | const [inline] |
Normalized to a length copy: Arbitrary normalized xyzTriple if length is zero.
References numeric::xyzTriple< T >::length(), and numeric::xyzTriple< T >::xyzTriple().
void numeric::xyzTriple< T >::normalized_any | ( | xyzTriple< T > & | a | ) | const [inline] |
Normalized: arbitrary normalized xyzTriple if length is zero.
References numeric::xyzTriple< T >::length().
void numeric::xyzTriple< T >::normalized_or_zero | ( | Value const & | length_a, |
xyzTriple< T > & | a | ||
) | const [inline] |
Normalized to a length: zero xyzTriple if length is zero.
References numeric::xyzTriple< T >::length().
xyzTriple numeric::xyzTriple< T >::normalized_or_zero | ( | ) | const [inline] |
Normalized copy: Zero xyzTriple if length is zero.
References numeric::xyzTriple< T >::length(), and numeric::xyzTriple< T >::xyzTriple().
xyzTriple numeric::xyzTriple< T >::normalized_or_zero | ( | Value const & | length_a | ) | const [inline] |
Normalized to a length copy: Zero xyzTriple if length is zero.
References numeric::xyzTriple< T >::length(), and numeric::xyzTriple< T >::xyzTriple().
void numeric::xyzTriple< T >::normalized_or_zero | ( | xyzTriple< T > & | a | ) | const [inline] |
Normalized: zero xyzTriple if length is zero.
References numeric::xyzTriple< T >::length().
bool numeric::xyzTriple< T >::not_equal_length | ( | xyzTriple< T > const & | v | ) | [inline] |
Not equal length?
References numeric::xyzTriple< T >::length_squared().
Value const& numeric::xyzTriple< T >::operator() | ( | int const | i | ) | const [inline] |
xyzTriple( i ) const: 1-based index
Value& numeric::xyzTriple< T >::operator() | ( | int const | i | ) | [inline] |
xyzTriple( i ): 1-based index
xyzTriple& numeric::xyzTriple< T >::operator*= | ( | Value const & | t | ) | [inline] |
*= Value
References sd::t.
xyzTriple& numeric::xyzTriple< T >::operator+= | ( | Value const & | t | ) | [inline] |
+= Value
References sd::t.
xyzTriple& numeric::xyzTriple< T >::operator+= | ( | xyzTriple< U > const & | v | ) | [inline] |
+= xyzTriple
xyzTriple numeric::xyzTriple< T >::operator- | ( | ) | const [inline] |
-xyzTriple (negated copy)
References numeric::xyzTriple< T >::xyzTriple().
xyzTriple& numeric::xyzTriple< T >::operator-= | ( | xyzTriple< U > const & | v | ) | [inline] |
-= xyzTriple
xyzTriple& numeric::xyzTriple< T >::operator-= | ( | Value const & | t | ) | [inline] |
-= Value
References sd::t.
xyzTriple& numeric::xyzTriple< T >::operator/= | ( | Value const & | t | ) | [inline] |
/= Value
xyzTriple& numeric::xyzTriple< T >::operator= | ( | xyzTriple< U > const & | v | ) | [inline] |
Copy assignment.
xyzTriple& numeric::xyzTriple< T >::operator= | ( | Value const & | t | ) | [inline] |
= Value
References sd::t.
xyzTriple& numeric::xyzTriple< T >::operator= | ( | xyzTriple< T > const & | v | ) | [inline] |
Copy assignment.
xyzTriple& numeric::xyzTriple< T >::operator= | ( | U const * | p | ) | [inline] |
Assignment from pointer to contiguous values.
References docking::p.
Value const& numeric::xyzTriple< T >::operator[] | ( | int const | i | ) | const [inline] |
xyzTriple[ i ] const: 0-based index
Value& numeric::xyzTriple< T >::operator[] | ( | int const | i | ) | [inline] |
xyzTriple[ i ]: 0-based index
xyzTriple& numeric::xyzTriple< T >::project_normal | ( | xyzTriple< T > const & | v | ) | [inline] |
Project normal.
References numeric::xyzTriple< T >::dot(), and numeric::xyzTriple< T >::length_squared().
xyzTriple& numeric::xyzTriple< T >::project_parallel | ( | xyzTriple< T > const & | v | ) | [inline] |
Project parallel.
References numeric::xyzTriple< T >::dot(), and numeric::xyzTriple< T >::length_squared().
xyzTriple numeric::xyzTriple< T >::projected_normal | ( | xyzTriple< T > const & | v | ) | const [inline] |
Projected normal copy.
References numeric::xyzTriple< T >::dot(), numeric::xyzTriple< T >::length_squared(), and numeric::xyzTriple< T >::xyzTriple().
void numeric::xyzTriple< T >::projected_normal | ( | xyzTriple< T > const & | v, |
xyzTriple< T > & | a | ||
) | const [inline] |
Projected normal.
References numeric::xyzTriple< T >::dot(), and numeric::xyzTriple< T >::length_squared().
xyzTriple numeric::xyzTriple< T >::projected_parallel | ( | xyzTriple< T > const & | v | ) | const [inline] |
Projected parallel copy.
References numeric::xyzTriple< T >::dot(), numeric::xyzTriple< T >::length_squared(), and numeric::xyzTriple< T >::xyzTriple().
void numeric::xyzTriple< T >::projected_parallel | ( | xyzTriple< T > const & | v, |
xyzTriple< T > & | a | ||
) | [inline] |
Projected parallel.
References numeric::xyzTriple< T >::dot(), and numeric::xyzTriple< T >::length_squared().
xyzTriple& numeric::xyzTriple< T >::scaled_add | ( | Value const & | t, |
xyzTriple< U > const & | v | ||
) | [inline] |
xyzTriple& numeric::xyzTriple< T >::scaled_assign | ( | Value const & | t, |
xyzTriple< U > const & | v | ||
) | [inline] |
xyzTriple& numeric::xyzTriple< T >::scaled_sub | ( | Value const & | t, |
xyzTriple< U > const & | v | ||
) | [inline] |
bool numeric::xyzTriple< T >::shorter | ( | xyzTriple< T > const & | v | ) | [inline] |
Shorter?
References numeric::xyzTriple< T >::length_squared().
bool numeric::xyzTriple< T >::shorter_or_equal | ( | xyzTriple< T > const & | v | ) | [inline] |
Shorter or equal length?
References numeric::xyzTriple< T >::length_squared().
Value& numeric::xyzTriple< T >::x | ( | ) | [inline] |
Value x.
void numeric::xyzTriple< T >::x | ( | Value const & | x_a | ) | [inline] |
x assignment
Value const& numeric::xyzTriple< T >::x | ( | ) | const [inline] |
Value x const.
Referenced by numeric::operator>>().
Value& numeric::xyzTriple< T >::y | ( | ) | [inline] |
Value y.
void numeric::xyzTriple< T >::y | ( | Value const & | y_a | ) | [inline] |
y assignment
Value const& numeric::xyzTriple< T >::y | ( | ) | const [inline] |
Value y const.
Referenced by numeric::operator>>().
Value& numeric::xyzTriple< T >::z | ( | ) | [inline] |
Value z.
Value const& numeric::xyzTriple< T >::z | ( | ) | const [inline] |
Value z const.
Referenced by numeric::operator>>().
void numeric::xyzTriple< T >::z | ( | Value const & | z_a | ) | [inline] |
z assignment
xyzTriple& numeric::xyzTriple< T >::zero | ( | ) | [inline] |
Zero.
void add | ( | xyzTriple< T > const & | v, |
Value const & | t, | ||
xyzTriple< T > & | r | ||
) | [friend] |
Add: xyzTriple + Value.
void add | ( | Value const & | t, |
xyzTriple< T > const & | v, | ||
xyzTriple< T > & | r | ||
) | [friend] |
Add: Value + xyzTriple.
Angle between two vectors (in radians on [ 0, pi ])
Referenced by numeric::angle_of().
Value angle_of | ( | xyzTriple< T > const & | a, |
xyzTriple< T > const & | b, | ||
xyzTriple< T > const & | c | ||
) | [friend] |
Angle formed by three consecutive points (in radians on [ 0, pi ])
xyzTriple center | ( | xyzTriple< T > const & | a, |
xyzTriple< T > const & | b | ||
) | [friend] |
Center of 2 xyzTriples.
xyzTriple center | ( | xyzTriple< T > const & | a, |
xyzTriple< T > const & | b, | ||
xyzTriple< T > const & | c | ||
) | [friend] |
Center of 3 xyzTriples.
void center | ( | xyzTriple< T > const & | a, |
xyzTriple< T > const & | b, | ||
xyzTriple< T > & | m | ||
) | [friend] |
Center of 2 xyzTriples: Return via argument (slightly faster)
xyzTriple center | ( | xyzTriple< T > const & | a, |
xyzTriple< T > const & | b, | ||
xyzTriple< T > const & | c, | ||
xyzTriple< T > const & | d | ||
) | [friend] |
Center of 4 xyzTriples.
void center | ( | xyzTriple< T > const & | a, |
xyzTriple< T > const & | b, | ||
xyzTriple< T > const & | c, | ||
xyzTriple< T > & | m | ||
) | [friend] |
Center of 3 xyzTriples: Return via argument (slightly faster)
void center | ( | xyzTriple< T > const & | a, |
xyzTriple< T > const & | b, | ||
xyzTriple< T > const & | c, | ||
xyzTriple< T > const & | d, | ||
xyzTriple< T > & | m | ||
) | [friend] |
Center of 4 xyzTriples: Return via argument (slightly faster)
Cosine of angle between two vectors.
Referenced by numeric::cos_of(), and numeric::sin_of().
Value cos_of | ( | xyzTriple< T > const & | a, |
xyzTriple< T > const & | b, | ||
xyzTriple< T > const & | c | ||
) | [friend] |
Cosine of angle formed by three consecutive points.
xyzTriple cross | ( | xyzTriple< T > const & | a, |
xyzTriple< T > const & | b | ||
) | [friend] |
Cross product.
void cross | ( | xyzTriple< T > const & | a, |
xyzTriple< T > const & | b, | ||
xyzTriple< T > & | c | ||
) | [friend] |
Cross product: Return via argument (slightly faster)
xyzTriple cross_product | ( | xyzTriple< T > const & | a, |
xyzTriple< T > const & | b | ||
) | [friend] |
Cross product.
void cross_product | ( | xyzTriple< T > const & | a, |
xyzTriple< T > const & | b, | ||
xyzTriple< T > & | c | ||
) | [friend] |
Cross product: Return via argument (slightly faster)
Distance.
Value distance_squared | ( | xyzTriple< T > const & | a, |
xyzTriple< T > const & | b | ||
) | [friend] |
Distance squared.
void divide | ( | xyzTriple< T > const & | v, |
Value const & | t, | ||
xyzTriple< T > & | r | ||
) | [friend] |
Divide: xyzTriple / Value.
Dot product.
Value dot_product | ( | xyzTriple< T > const & | a, |
xyzTriple< T > const & | b | ||
) | [friend] |
Dot product.
bool equal_length | ( | xyzTriple< T > const & | a, |
xyzTriple< T > const & | b | ||
) | [friend] |
Equal length?
Value inner_product | ( | xyzTriple< T > const & | a, |
xyzTriple< T > const & | b | ||
) | [friend] |
Inner product ( == dot product )
xyzTriple with max coordinates of two xyzTriples
void midpoint | ( | xyzTriple< T > const & | a, |
xyzTriple< T > const & | b, | ||
xyzTriple< T > & | m | ||
) | [friend] |
Midpoint of 2 xyzTriples: Return via argument (slightly faster)
xyzTriple midpoint | ( | xyzTriple< T > const & | a, |
xyzTriple< T > const & | b | ||
) | [friend] |
Midpoint of 2 xyzTriples.
xyzTriple with min coordinates of two xyzTriples
void multiply | ( | xyzTriple< T > const & | v, |
Value const & | t, | ||
xyzTriple< T > & | r | ||
) | [friend] |
Multiply: xyzTriple * Value.
void multiply | ( | Value const & | t, |
xyzTriple< T > const & | v, | ||
xyzTriple< T > & | r | ||
) | [friend] |
Multiply: Value * xyzTriple.
bool not_equal_length | ( | xyzTriple< T > const & | a, |
xyzTriple< T > const & | b | ||
) | [friend] |
Not equal length?
xyzTriple != Value
Value != xyzTriple.
xyzTriple * Value
Value * xyzTriple.
Value + xyzTriple.
xyzTriple + Value
Value - xyzTriple.
xyzTriple - Value
xyzTriple / Value
xyzTriple < Value
Value < xyzTriple.
xyzTriple <= Value
Value <= xyzTriple.
Value == xyzTriple.
xyzTriple == Value
xyzTriple > Value
Value > xyzTriple.
xyzTriple >= Value
Value >= xyzTriple.
Sine of angle between two vectors.
Referenced by numeric::sin_of().
Value sin_of | ( | xyzTriple< T > const & | a, |
xyzTriple< T > const & | b, | ||
xyzTriple< T > const & | c | ||
) | [friend] |
Sine of angle formed by three consecutive points.
void subtract | ( | Value const & | t, |
xyzTriple< T > const & | v, | ||
xyzTriple< T > & | r | ||
) | [friend] |
Subtract: Value - xyzTriple.
void subtract | ( | xyzTriple< T > const & | v, |
Value const & | t, | ||
xyzTriple< T > & | r | ||
) | [friend] |
Subtract: xyzTriple - Value.
friend class xyzTriple [friend] |