A geometric point in (x,y,z) space. More...
#include <point.h>
Public Types | |
typedef Real | value_type |
typedef unsigned int | index_type |
Public Member Functions | |
Point (const Real x=0., const Real y=0., const Real z=0.) | |
Point (const Point &p) | |
Point (const TypeVector< Real > &p) | |
~Point () | |
void | assign (const TypeVector< T2 > &) |
const Real & | operator() (const unsigned int i) const |
Real & | operator() (const unsigned int i) |
const Real & | slice (const unsigned int i) const |
Real & | slice (const unsigned int i) |
TypeVector< typename CompareTypes< Real, T2 >::supertype > | operator+ (const TypeVector< T2 > &) const |
const TypeVector< Real > & | operator+= (const TypeVector< T2 > &) |
void | add (const TypeVector< T2 > &) |
void | add_scaled (const TypeVector< T2 > &, const Real) |
TypeVector< typename CompareTypes< Real, T2 >::supertype > | operator- (const TypeVector< T2 > &) const |
TypeVector< Real > | operator- () const |
const TypeVector< Real > & | operator-= (const TypeVector< T2 > &) |
void | subtract (const TypeVector< T2 > &) |
void | subtract_scaled (const TypeVector< T2 > &, const Real) |
boostcopy::enable_if_c< ScalarTraits< Scalar >::value, TypeVector< typename CompareTypes< Real, Scalar >::supertype > >::type | operator* (const Scalar) const |
CompareTypes< Real, T2 >::supertype | operator* (const TypeVector< T2 > &) const |
const TypeVector< Real > & | operator*= (const Real) |
boostcopy::enable_if_c< ScalarTraits< Scalar >::value, TypeVector< typename CompareTypes< Real, Scalar >::supertype > >::type | operator/ (const Scalar) const |
const TypeVector< Real > & | operator/= (const Real) |
CompareTypes< Real, T2 >::supertype | contract (const TypeVector< T2 > &) const |
TypeVector< typename CompareTypes< Real, T2 >::supertype > | cross (const TypeVector< T2 > &v) const |
TypeVector< Real > | unit () const |
Real | size () const |
Real | norm () const |
Real | size_sq () const |
Real | norm_sq () const |
void | zero () |
bool | relative_fuzzy_equals (const TypeVector< Real > &rhs, Real tol=TOLERANCE) const |
bool | absolute_fuzzy_equals (const TypeVector< Real > &rhs, Real tol=TOLERANCE) const |
bool | operator== (const TypeVector< Real > &rhs) const |
bool | operator!= (const TypeVector< Real > &rhs) const |
bool | operator< (const TypeVector< Real > &rhs) const |
bool | operator< (const TypeVector< Complex > &rhs) const |
bool | operator<= (const TypeVector< Real > &rhs) const |
bool | operator<= (const TypeVector< Complex > &rhs) const |
bool | operator> (const TypeVector< Real > &rhs) const |
bool | operator> (const TypeVector< Complex > &rhs) const |
bool | operator>= (const TypeVector< Real > &rhs) const |
bool | operator>= (const TypeVector< Complex > &rhs) const |
void | print (std::ostream &os=libMesh::out) const |
void | write_unformatted (std::ostream &out, const bool newline=true) const |
Protected Attributes | |
Real | _coords [LIBMESH_DIM] |
Friends | |
class | Node |
A geometric point in (x,y,z) space.
A Point
defines a location in LIBMESH_DIM dimensional Real space. Points are always real-valued, even if the library is configured with –enable-complex
.
|
inherited |
Helper typedef for generic index programming
Definition at line 110 of file type_vector.h.
|
inherited |
Helper typedef for C++98 generic programming
Definition at line 105 of file type_vector.h.
|
inline |
|
inline |
|
inlineinherited |
true
if two vectors are equal to within an absolute tolerance of tol
. Definition at line 965 of file type_vector.h.
References std::abs().
|
inlineinherited |
|
inlineinherited |
Add a scaled value to this vector without creating a temporary.
Definition at line 627 of file type_vector.h.
|
inlineinherited |
|
inlineinherited |
Definition at line 872 of file type_vector.h.
|
inherited |
|
inlineinherited |
Definition at line 912 of file type_vector.h.
References libMesh::TensorTools::norm_sq().
|
inlineinherited |
Definition at line 943 of file type_vector.h.
References libMesh::TensorTools::norm_sq().
|
inlineinherited |
Definition at line 1037 of file type_vector.h.
|
inlineinherited |
|
inlineinherited |
Definition at line 553 of file type_vector.h.
|
inlineinherited |
Multiply this vector by a scalar value.
Definition at line 739 of file type_vector.h.
|
inlineinherited |
Definition at line 850 of file type_vector.h.
|
inlineinherited |
Multiply this vector by a scalar value.
Definition at line 776 of file type_vector.h.
|
inlineinherited |
Add two vectors.
Definition at line 566 of file type_vector.h.
|
inlineinherited |
|
inlineinherited |
Subtract from this vector.
Definition at line 652 of file type_vector.h.
|
inlineinherited |
Definition at line 711 of file type_vector.h.
|
inlineinherited |
Subtract from this vector.
Definition at line 678 of file type_vector.h.
|
inlineinherited |
Divide each entry of this vector by scalar value.
Definition at line 804 of file type_vector.h.
|
inlineinherited |
Divide each entry of this vector by scalar value.
Definition at line 833 of file type_vector.h.
|
inherited |
Definition at line 167 of file type_vector.C.
|
inherited |
true
if this vector is "less" than rhs
.Useful for sorting. Also used for choosing some arbitrary basis function orientations.
Definition at line 109 of file type_vector.C.
|
inherited |
Definition at line 186 of file type_vector.C.
|
inherited |
true
if this vector is <= to rhs
.Useful for sorting. Also used for choosing some arbitrary constraint equation directions.
Definition at line 123 of file type_vector.C.
|
inlineinherited |
true
if this(i)==rhs(i) for each component of the vector.absolute_fuzzy_equals()
may be a more appropriate choice. Definition at line 1015 of file type_vector.h.
Referenced by libMesh::Node::operator==().
|
inherited |
Definition at line 205 of file type_vector.C.
|
inherited |
true
if this vector is "greater" than rhs
.Useful for sorting. Also used for choosing some arbitrary basis function orientations.
Definition at line 138 of file type_vector.C.
|
inherited |
Definition at line 224 of file type_vector.C.
|
inherited |
true
if this vector is >= rhs
.Useful for sorting. Also used for choosing some arbitrary constraint equation directions.
Definition at line 152 of file type_vector.C.
|
inherited |
|
inlineinherited |
true
if two vectors are equal to within a relative tolerance of tol
. Definition at line 990 of file type_vector.h.
References std::abs().
|
inlineinherited |
Definition at line 901 of file type_vector.h.
|
inlineinherited |
Definition at line 932 of file type_vector.h.
References libMesh::TensorTools::norm_sq().
|
inlineinherited |
Definition at line 143 of file type_vector.h.
|
inlineinherited |
Definition at line 149 of file type_vector.h.
|
inlineinherited |
Subtract from this vector without creating a temporary.
Definition at line 690 of file type_vector.h.
|
inlineinherited |
Subtract a scaled value from this vector without creating a temporary.
Definition at line 701 of file type_vector.h.
|
inherited |
Definition at line 37 of file type_vector.C.
References libMesh::Real.
|
inherited |
Unformatted print to the stream out
. Simply prints the elements of the vector separated by spaces. Also prints a newline by default, however, this behavior can be controlled with the newline
parameter.
Definition at line 92 of file type_vector.C.
|
inlineinherited |
|
protectedinherited |
The coordinates of the TypeVector
.
Definition at line 409 of file type_vector.h.