|
| | MGUnit_vector (int sdim=3) |
| | Void constructor. [詳解]
|
| |
| | MGUnit_vector (const MGVector &v) |
| |
| MGUnit_vector & | operator= (const MGVector &vec2) |
| | Assignment From Vector. [詳解]
|
| |
| MGUnit_vector & | operator= (const double *) |
| |
| MGUnit_vector & | operator+= (const MGVector &vec2) |
| | Update the unit vector by adding vec2. [詳解]
|
| |
| MGUnit_vector | operator- () const |
| |
| MGUnit_vector & | operator-= (const MGVector &vec2) |
| |
| MGUnit_vector & | operator*= (const MGVector &vec2) |
| | Update own vector by vector product output. [詳解]
|
| |
| void | orthonormal (const MGVector &sv, MGUnit_vector &v1, MGUnit_vector &v2) const |
| |
| | MGVector (int sdim=0) |
| | Void constructor. [詳解]
|
| |
| | MGVector (double x, double y) |
| | Construct 2D vector by providing each element data. [詳解]
|
| |
| | MGVector (double x, double y, double z) |
| | Construct 3D vector by providing each element data. [詳解]
|
| |
| | MGVector (double x, double y, double z, double w) |
| | Construct 4D vector by providing each element data. [詳解]
|
| |
| | MGVector (int sdim, double v) |
| |
| | MGVector (int sdim, const double *v) |
| |
| | MGVector (const MGPosition &) |
| |
| | MGVector (const MGVector &dvec, const MGVector &svec) |
| | Construct a vector from a difference of two vectors. [詳解]
|
| |
| | MGVector (int sdim, const MGVector &vec2, int start1=0, int start2=0) |
| |
| | MGVector (const std::vector< double > &darrays) |
| | Construct from std::vector<double> [詳解]
|
| |
| | MGVector (const MGVector &) |
| | Copy constructor. [詳解]
|
| |
| | ~MGVector () |
| |
| MGVector & | operator= (const MGVector &) |
| | Assignment. [詳解]
|
| |
| double | operator() (int i) const |
| | Return i-th element of the vector. [詳解]
|
| |
| double | operator[] (int i) const |
| | Return i-th element of the vector. [詳解]
|
| |
| double & | operator() (int i) |
| |
| MGVector & | operator= (const double *) |
| | Update vector data by array of double. [詳解]
|
| |
| MGVector & | operator+= (const MGVector &) |
| |
| MGVector | operator- () const |
| |
| MGVector & | operator-= (const MGVector &) |
| |
| MGVector & | operator*= (double scale) |
| |
| MGVector & | operator*= (const MGVector &vec2) |
| | Update own vector by vector product output, changes to 3D vector. [詳解]
|
| |
| MGVector & | operator/= (double scale) |
| |
| double | angle (const MGVector &) const |
| |
| double | anglepai (const MGVector &v2) const |
| |
| double | angle2pai (const MGVector &v2, const MGVector &N) const |
| |
| double | cangle (const MGVector &) const |
| |
| MGVector & | clear (double init=0.0) |
| | Clear all the element by the value init. [詳解]
|
| |
| const double * | data () const |
| | Return the 1st address of the array of the vector double data. [詳解]
|
| |
| double * | data () |
| |
| MGVector | interpolate (double t, const MGVector &vec2) const |
| |
| MGVector | interpolate_by_rotate (double t, const MGVector &vec2, double *ratio=0) const |
| |
| bool | is_collinear (const MGVector &v2) const |
| |
| bool | is_collinear (const MGVector &v2, const MGVector &v3) const |
| |
| bool | is_null () const |
| | Test if this is null. [詳解]
|
| |
| bool | is_unit_vector () const |
| |
| bool | is_zero_vector () const |
| | Return true when the vector is a zero vector. [詳解]
|
| |
| double | len () const |
| |
| void | negate () |
| | Negate the vector. [詳解]
|
| |
| MGUnit_vector | normalize () const |
| |
| bool | orthogonal (const MGVector &) const |
| |
| int | out_to_IGES (MGIgesOfstream &igesfile, int SubordinateEntitySwitch=0) const |
| |
| MGVector | orthogonize (const MGVector &vec2) const |
| |
| bool | parallel (const MGVector &) const |
| |
| MGVector | project (const MGVector &v2) const |
| |
| double | ref (int i) const |
| | Reference to i-th element. [詳解]
|
| |
| void | resize (int new_sdim) |
| |
| double | sangle (const MGVector &) const |
| |
| int | sdim () const |
| | Get the space dimension. [詳解]
|
| |
| void | set_null () |
| | Set this as a null vector. [詳解]
|
| |
| void | set_unit () |
| | Change this to a unit vector. [詳解]
|
| |
| void | store_at (int i, const MGVector &vec2, int j=0) |
| |
| void | store_at (int i, const MGVector &vec2, int j, int len) |
| |
| void | swap (int i, int j) |
| |
| int | dump_size () const |
| |
| int | dump (MGOfstream &) const |
| | Dump Function. [詳解]
|
| |
| int | restore (MGIfstream &) |
| | Restore Function. [詳解]
|
| |
Define a unit vector, is a MGVector.