scifir-units 2.0.0
scifir-units is a library of units of measurement, angles, coordinates, fields, and related data, all lightweight, that help in the development of scientific software and scientific machines
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Private Member Functions | List of all members
scifir::coordinates_nd< float > Class Reference

#include <coordinates_nd.hpp>

Public Member Functions

 coordinates_nd ()
 
 coordinates_nd (const coordinates_nd< float > &x)
 
 coordinates_nd (coordinates_nd< float > &&x)
 
 coordinates_nd (const vector< float > &new_values)
 
 coordinates_nd (float new_x)
 
 coordinates_nd (float new_x, float new_y)
 
 coordinates_nd (float new_p, const angle &new_theta)
 
 coordinates_nd (float new_x, float new_y, float new_z)
 
 coordinates_nd (float new_p, const angle &new_theta, float new_z)
 
 coordinates_nd (float new_r, const angle &new_theta, const angle &new_phi)
 
 coordinates_nd (const angle &new_latitude, const angle &new_longitude, float new_altitude)
 
 coordinates_nd (const string &init_coordinates_nd)
 
coordinates_nd< float > & operator= (const coordinates_nd< float > &x_coordinates)
 
coordinates_nd< float > & operator= (coordinates_nd< float > &&x_coordinates)
 
coordinates_nd< float > & operator= (const string &init_coordinates_nd)
 
bool is_nd (unsigned int i) const
 
int get_nd () const
 
float get_p () const
 
angle get_theta () const
 
float get_r () const
 
angle get_phi () const
 
latitude get_latitude () const
 
longitude get_longitude () const
 
float get_altitude () const
 
void set_position (float new_x)
 
void set_position (float new_x, float new_y)
 
void set_position (float new_p, const angle &new_theta)
 
void set_position (float new_x, float new_y, float new_z)
 
void set_position (float new_p, const angle &new_theta, float new_z)
 
void set_position (float new_r, const angle &new_theta, const angle &new_phi)
 
void set_position (const angle &new_latitude, const angle &new_longitude, float new_altitude)
 
void set_position (const vector< float > &new_values)
 
void rotate_in_2d (const angle &new_theta)
 
void rotate_in_3d (int axis, const angle &new_theta)
 
void move (float new_x)
 
void move (const displacement_2d &x_displacement)
 
void move (float new_x, float new_y)
 
void move (float new_p, const angle &new_theta)
 
void move (const displacement_3d &x_displacement)
 
void move (float new_x, float new_y, float new_z)
 
void move (float new_p, const angle &new_theta, float new_z)
 
void move (float new_r, const angle &new_theta, const angle &new_phi)
 
void move (const displacement_nd &x_displacement)
 
void move (float new_r, const vector< angle > &new_angles)
 
float distance_to_origin () const
 
string display_cartesian_2d () const
 
string display_polar () const
 
string display_cartesian_3d () const
 
string display_cylindrical () const
 
string display_spherical () const
 
string display_geographical () const
 

Public Attributes

vector< floatvalues
 

Private Member Functions

void initialize_from_string (string init_coordinates_nd)
 

Detailed Description

Definition at line 603 of file coordinates_nd.hpp.

Constructor & Destructor Documentation

◆ coordinates_nd() [1/12]

scifir::coordinates_nd< float >::coordinates_nd ( )
inline

Definition at line 606 of file coordinates_nd.hpp.

606 : values()
607 {}

◆ coordinates_nd() [2/12]

scifir::coordinates_nd< float >::coordinates_nd ( const coordinates_nd< float > &  x)
inline

Definition at line 609 of file coordinates_nd.hpp.

609 : values(x.values)
610 {}

◆ coordinates_nd() [3/12]

scifir::coordinates_nd< float >::coordinates_nd ( coordinates_nd< float > &&  x)
inline

Definition at line 612 of file coordinates_nd.hpp.

612 : values(std::move(x.values))
613 {}

◆ coordinates_nd() [4/12]

scifir::coordinates_nd< float >::coordinates_nd ( const vector< float > &  new_values)
inlineexplicit

Definition at line 615 of file coordinates_nd.hpp.

615 : values(new_values)
616 {}

◆ coordinates_nd() [5/12]

scifir::coordinates_nd< float >::coordinates_nd ( float  new_x)
inlineexplicit

Definition at line 618 of file coordinates_nd.hpp.

618 : values()
619 {
620 values.push_back(new_x);
621 }

◆ coordinates_nd() [6/12]

scifir::coordinates_nd< float >::coordinates_nd ( float  new_x,
float  new_y 
)
inlineexplicit

Definition at line 623 of file coordinates_nd.hpp.

623 : values()
624 {
625 values.push_back(new_x);
626 values.push_back(new_y);
627 }

◆ coordinates_nd() [7/12]

scifir::coordinates_nd< float >::coordinates_nd ( float  new_p,
const angle new_theta 
)
inlineexplicit

Definition at line 629 of file coordinates_nd.hpp.

629 : values()
630 {
631 set_position(new_p,new_theta);
632 }

◆ coordinates_nd() [8/12]

scifir::coordinates_nd< float >::coordinates_nd ( float  new_x,
float  new_y,
float  new_z 
)
inlineexplicit

Definition at line 634 of file coordinates_nd.hpp.

634 : values()
635 {
636 values.push_back(new_x);
637 values.push_back(new_y);
638 values.push_back(new_z);
639 }

◆ coordinates_nd() [9/12]

scifir::coordinates_nd< float >::coordinates_nd ( float  new_p,
const angle new_theta,
float  new_z 
)
inlineexplicit

Definition at line 641 of file coordinates_nd.hpp.

641 : values()
642 {
643 set_position(new_p,new_theta,new_z);
644 }

◆ coordinates_nd() [10/12]

scifir::coordinates_nd< float >::coordinates_nd ( float  new_r,
const angle new_theta,
const angle new_phi 
)
inlineexplicit

Definition at line 646 of file coordinates_nd.hpp.

646 : values()
647 {
648 set_position(new_r,new_theta,new_phi);
649 }

◆ coordinates_nd() [11/12]

scifir::coordinates_nd< float >::coordinates_nd ( const angle new_latitude,
const angle new_longitude,
float  new_altitude 
)
inlineexplicit

Definition at line 651 of file coordinates_nd.hpp.

651 : values()
652 {
653 set_position(new_latitude,new_longitude,new_altitude);
654 }

◆ coordinates_nd() [12/12]

scifir::coordinates_nd< float >::coordinates_nd ( const string init_coordinates_nd)
inlineexplicit

Definition at line 656 of file coordinates_nd.hpp.

656 : values()
657 {
658 initialize_from_string(init_coordinates_nd);
659 }
void initialize_from_string(string init_coordinates_nd)

Member Function Documentation

◆ display_cartesian_2d()

string scifir::coordinates_nd< float >::display_cartesian_2d ( ) const
inline

Definition at line 972 of file coordinates_nd.hpp.

973 {
974 if (values.size() == 2)
975 {
976 ostringstream out;
977 out << "(" << display_float(values[0]) << "," << display_float(values[1]) << ")";
978 return out.str();
979 }
980 else
981 {
982 return "[no-2d]";
983 }
984 }
string display_float(const float &value, int number_of_decimals)
Definition types.cpp:36

◆ display_cartesian_3d()

string scifir::coordinates_nd< float >::display_cartesian_3d ( ) const
inline

Definition at line 1000 of file coordinates_nd.hpp.

1001 {
1002 if (values.size() == 3)
1003 {
1004 ostringstream out;
1005 out << "(" << display_float(values[0]) << "," << display_float(values[1]) << "," << display_float(values[2]) << ")";
1006 return out.str();
1007 }
1008 else
1009 {
1010 return "[no-3d]";
1011 }
1012 }

◆ display_cylindrical()

string scifir::coordinates_nd< float >::display_cylindrical ( ) const
inline

Definition at line 1014 of file coordinates_nd.hpp.

1015 {
1016 if (values.size() == 3)
1017 {
1018 ostringstream out;
1019 out << "(" << display_float(get_p()) << "," << get_theta() << "," << display_float(values[2]) << ")";
1020 return out.str();
1021 }
1022 else
1023 {
1024 return "[no-3d]";
1025 }
1026 }

◆ display_geographical()

string scifir::coordinates_nd< float >::display_geographical ( ) const
inline

Definition at line 1042 of file coordinates_nd.hpp.

1043 {
1044 if (values.size() == 3)
1045 {
1046 ostringstream out;
1047 out << "(" << get_latitude() << "," << get_longitude() << "," << display_float(get_altitude()) << ")";
1048 return out.str();
1049 }
1050 else
1051 {
1052 return "[no-3d]";
1053 }
1054 }

◆ display_polar()

string scifir::coordinates_nd< float >::display_polar ( ) const
inline

Definition at line 986 of file coordinates_nd.hpp.

987 {
988 if (values.size() == 2)
989 {
990 ostringstream out;
991 out << "(" << display_float(get_p()) << "," << get_theta() << ")";
992 return out.str();
993 }
994 else
995 {
996 return "[no-2d]";
997 }
998 }

◆ display_spherical()

string scifir::coordinates_nd< float >::display_spherical ( ) const
inline

Definition at line 1028 of file coordinates_nd.hpp.

1029 {
1030 if (values.size() == 3)
1031 {
1032 ostringstream out;
1033 out << "(" << display_float(get_r()) << "," << get_theta() << "," << get_phi() << ")";
1034 return out.str();
1035 }
1036 else
1037 {
1038 return "[no-3d]";
1039 }
1040 }

◆ distance_to_origin()

float scifir::coordinates_nd< float >::distance_to_origin ( ) const
inline

Definition at line 962 of file coordinates_nd.hpp.

963 {
964 float x_T = 0;
965 for (unsigned int i = 0; i < values.size(); i++)
966 {
967 x_T += float(std::pow(values[i],2));
968 }
969 return std::sqrt(x_T);
970 }

◆ get_altitude()

float scifir::coordinates_nd< float >::get_altitude ( ) const
inline

Definition at line 761 of file coordinates_nd.hpp.

762 {
763 if (get_nd() == 3)
764 {
765 return ECEF_to_LLA_altitude(values[0],values[1],values[2]);
766 }
767 else
768 {
769 return 0.0f;
770 }
771 }
scalar_unit ECEF_to_LLA_altitude(const scalar_unit &x, scalar_unit y, const scalar_unit &z)

◆ get_latitude()

latitude scifir::coordinates_nd< float >::get_latitude ( ) const
inline

Definition at line 737 of file coordinates_nd.hpp.

738 {
739 if (get_nd() == 3)
740 {
741 return ECEF_to_LLA_latitude(values[0],values[1],values[2]);
742 }
743 else
744 {
745 return latitude();
746 }
747 }
latitude ECEF_to_LLA_latitude(const scalar_unit &x, scalar_unit y, const scalar_unit &z)

◆ get_longitude()

longitude scifir::coordinates_nd< float >::get_longitude ( ) const
inline

Definition at line 749 of file coordinates_nd.hpp.

750 {
751 if (get_nd() == 3)
752 {
753 return ECEF_to_LLA_longitude(values[0],values[1],values[2]);
754 }
755 else
756 {
757 return longitude();
758 }
759 }
longitude ECEF_to_LLA_longitude(const scalar_unit &x, scalar_unit y, const scalar_unit &z)

◆ get_nd()

int scifir::coordinates_nd< float >::get_nd ( ) const
inline

Definition at line 684 of file coordinates_nd.hpp.

685 {
686 return int(values.size());
687 }

◆ get_p()

float scifir::coordinates_nd< float >::get_p ( ) const
inline

Definition at line 689 of file coordinates_nd.hpp.

690 {
691 if (get_nd() == 2 or get_nd() == 3)
692 {
693 return float(std::sqrt(std::pow(values[0],2) + std::pow(values[1],2)));
694 }
695 else
696 {
697 return 0.0f;
698 }
699 }

◆ get_phi()

angle scifir::coordinates_nd< float >::get_phi ( ) const
inline

Definition at line 725 of file coordinates_nd.hpp.

726 {
727 if (get_nd() == 3)
728 {
729 return angle(scifir::acos_degree(float(values[2]/std::sqrt(std::pow(values[0],2) + std::pow(values[1],2) + std::pow(values[2],2)))));
730 }
731 else
732 {
733 return angle();
734 }
735 }
float acos_degree(float x)
Calculates the acos receiving x in degrees. It uses the acos() function of the standard library of C+...
Definition angle.hpp:247

◆ get_r()

float scifir::coordinates_nd< float >::get_r ( ) const
inline

Definition at line 713 of file coordinates_nd.hpp.

714 {
715 if (get_nd() == 2 or get_nd() == 3)
716 {
717 return float(std::sqrt(std::pow(values[0],2) + std::pow(values[1],2) + std::pow(values[2],2)));
718 }
719 else
720 {
721 return 0.0f;
722 }
723 }

◆ get_theta()

angle scifir::coordinates_nd< float >::get_theta ( ) const
inline

Definition at line 701 of file coordinates_nd.hpp.

702 {
703 if (get_nd() == 2 or get_nd() == 3)
704 {
705 return angle(scifir::atan_degree(float(values[1]/values[0])));
706 }
707 else
708 {
709 return angle();
710 }
711 }
float atan_degree(float x)
Calculates the atan receiving x in degrees. It uses the atan() function of the standard library of C+...
Definition angle.hpp:252

◆ initialize_from_string()

void scifir::coordinates_nd< float >::initialize_from_string ( string  init_coordinates_nd)
inlineprivate

Definition at line 1059 of file coordinates_nd.hpp.

1060 {
1061 vector<string> init_values;
1062 if (init_coordinates_nd.front() == '(')
1063 {
1064 init_coordinates_nd.erase(0,1);
1065 }
1066 if (init_coordinates_nd.back() == ')')
1067 {
1068 init_coordinates_nd.erase(init_coordinates_nd.size()-1,1);
1069 }
1070 boost::split(init_values,init_coordinates_nd,boost::is_any_of(","));
1071 for (const string& x_value : init_values)
1072 {
1073 if (x_value == "")
1074 {
1075 return;
1076 }
1077 }
1078 if (init_values.size() == 2)
1079 {
1080 if (is_angle(init_values[1]))
1081 {
1082 set_position(stof(init_values[0]),angle(init_values[1]));
1083 }
1084 else
1085 {
1086 set_position(stof(init_values[0]),stof(init_values[1]));
1087 }
1088 }
1089 else if (init_values.size() == 3)
1090 {
1091 if (is_latitude(init_values[0]))
1092 {
1093 if (is_longitude(init_values[1]))
1094 {
1095 if (!is_angle(init_values[2]))
1096 {
1097 set_position(angle(init_values[0]),angle(init_values[1]),stof(init_values[2]));
1098 }
1099 }
1100 }
1101 else
1102 {
1103 if (is_angle(init_values[1]))
1104 {
1105 if (is_angle(init_values[2]))
1106 {
1107 set_position(stof(init_values[0]),angle(init_values[1]),angle(init_values[2]));
1108 }
1109 else
1110 {
1111 set_position(stof(init_values[0]),angle(init_values[1]),stof(init_values[2]));
1112 }
1113 }
1114 else
1115 {
1116 if (!is_angle(init_values[2]))
1117 {
1118 set_position(stof(init_values[0]),stof(init_values[1]),stof(init_values[2]));
1119 }
1120 }
1121 }
1122 }
1123 else
1124 {
1125 for (const string& x_value : init_values)
1126 {
1127 values.push_back(stof(x_value));
1128 }
1129 }
1130 }
bool is_latitude(const string &init_latitude)
Definition latitude.cpp:199
bool is_longitude(const string &init_longitude)
bool is_angle(const string &init_angle)
Checks if some string is an initialization string of an angle.
Definition angle.cpp:336

◆ is_nd()

bool scifir::coordinates_nd< float >::is_nd ( unsigned int  i) const
inline

Definition at line 679 of file coordinates_nd.hpp.

680 {
681 return values.size() == i;
682 }

◆ move() [1/10]

void scifir::coordinates_nd< float >::move ( const displacement_2d x_displacement)
inline

Definition at line 878 of file coordinates_nd.hpp.

879 {
880 if (values.size() == 2)
881 {
882 values[0] += float(x_displacement.x_projection());
883 values[1] += float(x_displacement.y_projection());
884 }
885 }

◆ move() [2/10]

void scifir::coordinates_nd< float >::move ( const displacement_3d x_displacement)
inline

Definition at line 905 of file coordinates_nd.hpp.

906 {
907 if (values.size() == 3)
908 {
909 values[0] += float(x_displacement.x_projection());
910 values[1] += float(x_displacement.y_projection());
911 values[2] += float(x_displacement.z_projection());
912 }
913 }

◆ move() [3/10]

void scifir::coordinates_nd< float >::move ( const displacement_nd x_displacement)
inline

Definition at line 945 of file coordinates_nd.hpp.

946 {
947 if (x_displacement.get_nd() == get_nd())
948 {
949 for (int i = 0; i < x_displacement.get_nd(); i++)
950 {
951 values[i] += float(x_displacement.n_projection(i));
952 }
953 }
954 }

◆ move() [4/10]

void scifir::coordinates_nd< float >::move ( float  new_p,
const angle new_theta 
)
inline

Definition at line 896 of file coordinates_nd.hpp.

897 {
898 if (values.size() == 2)
899 {
900 values[0] += new_p * scifir::cos(new_theta);
901 values[1] += new_p * scifir::sin(new_theta);
902 }
903 }
float cos(const angle &x)
Calculates the cos of angle x. It uses the cos() function of the standard library of C++,...
Definition angle.cpp:431
float sin(const angle &x)
Calculates the sin of angle x. It uses the sin() function of the standard library of C++,...
Definition angle.cpp:426

◆ move() [5/10]

void scifir::coordinates_nd< float >::move ( float  new_p,
const angle new_theta,
float  new_z 
)
inline

Definition at line 925 of file coordinates_nd.hpp.

926 {
927 if (values.size() == 3)
928 {
929 values[0] += new_p * scifir::cos(new_theta);
930 values[1] += new_p * scifir::sin(new_theta);
931 values[2] += new_z;
932 }
933 }

◆ move() [6/10]

void scifir::coordinates_nd< float >::move ( float  new_r,
const angle new_theta,
const angle new_phi 
)
inline

Definition at line 935 of file coordinates_nd.hpp.

936 {
937 if (values.size() == 3)
938 {
939 values[0] += new_r * scifir::cos(new_theta) * scifir::sin(new_phi);
940 values[1] += new_r * scifir::sin(new_theta) * scifir::sin(new_phi);
941 values[2] += new_r * scifir::cos(new_phi);
942 }
943 }

◆ move() [7/10]

void scifir::coordinates_nd< float >::move ( float  new_r,
const vector< angle > &  new_angles 
)
inline

Definition at line 956 of file coordinates_nd.hpp.

957 {
958 displacement_nd x_displacement = displacement_nd(new_r,"m",new_angles);
959 move(x_displacement);
960 }

◆ move() [8/10]

void scifir::coordinates_nd< float >::move ( float  new_x)
inline

Definition at line 870 of file coordinates_nd.hpp.

871 {
872 if (values.size() == 1)
873 {
874 values[0] += new_x;
875 }
876 }

◆ move() [9/10]

void scifir::coordinates_nd< float >::move ( float  new_x,
float  new_y 
)
inline

Definition at line 887 of file coordinates_nd.hpp.

888 {
889 if (values.size() == 2)
890 {
891 values[0] += new_x;
892 values[1] += new_y;
893 }
894 }

◆ move() [10/10]

void scifir::coordinates_nd< float >::move ( float  new_x,
float  new_y,
float  new_z 
)
inline

Definition at line 915 of file coordinates_nd.hpp.

916 {
917 if (values.size() == 3)
918 {
919 values[0] += new_x;
920 values[1] += new_y;
921 values[2] += new_z;
922 }
923 }

◆ operator=() [1/3]

coordinates_nd< float > & scifir::coordinates_nd< float >::operator= ( const coordinates_nd< float > &  x_coordinates)
inline

Definition at line 661 of file coordinates_nd.hpp.

662 {
663 values = x_coordinates.values;
664 return *this;
665 }

◆ operator=() [2/3]

coordinates_nd< float > & scifir::coordinates_nd< float >::operator= ( const string init_coordinates_nd)
inline

Definition at line 673 of file coordinates_nd.hpp.

674 {
675 initialize_from_string(init_coordinates_nd);
676 return *this;
677 }

◆ operator=() [3/3]

coordinates_nd< float > & scifir::coordinates_nd< float >::operator= ( coordinates_nd< float > &&  x_coordinates)
inline

Definition at line 667 of file coordinates_nd.hpp.

668 {
669 values = std::move(x_coordinates.values);
670 return *this;
671 }

◆ rotate_in_2d()

void scifir::coordinates_nd< float >::rotate_in_2d ( const angle new_theta)
inline

Definition at line 831 of file coordinates_nd.hpp.

832 {
833 if (get_nd() == 2)
834 {
835 float x_coord = values[0];
836 float y_coord = values[1];
837 values[0] = x_coord * scifir::cos(new_theta) - y_coord * scifir::sin(new_theta);
838 values[1] = x_coord * scifir::sin(new_theta) + y_coord * scifir::cos(new_theta);
839 }
840 }

◆ rotate_in_3d()

void scifir::coordinates_nd< float >::rotate_in_3d ( int  axis,
const angle new_theta 
)
inline

Definition at line 842 of file coordinates_nd.hpp.

843 {
844 if (get_nd() == 3)
845 {
846 if (axis == 1)
847 {
848 float y_coord = values[1];
849 float z_coord = values[2];
850 values[1] = y_coord * scifir::cos(new_theta) - z_coord * scifir::sin(new_theta);
851 values[2] = y_coord * scifir::sin(new_theta) + z_coord * scifir::cos(new_theta);
852 }
853 else if (axis == 2)
854 {
855 float x_coord = values[0];
856 float z_coord = values[2];
857 values[0] = x_coord * scifir::cos(new_theta) - z_coord * scifir::sin(new_theta);
858 values[2] = x_coord * scifir::sin(new_theta) + z_coord * scifir::cos(new_theta);
859 }
860 else if (axis == 3)
861 {
862 float x_coord = values[0];
863 float y_coord = values[1];
864 values[0] = x_coord * scifir::cos(new_theta) - y_coord * scifir::sin(new_theta);
865 values[1] = x_coord * scifir::sin(new_theta) + y_coord * scifir::cos(new_theta);
866 }
867 }
868 }

◆ set_position() [1/8]

void scifir::coordinates_nd< float >::set_position ( const angle new_latitude,
const angle new_longitude,
float  new_altitude 
)
inline

Definition at line 817 of file coordinates_nd.hpp.

818 {
819 values.clear();
820 values.push_back(new_altitude * scifir::cos(new_latitude) * scifir::cos(new_longitude));
821 values.push_back(new_altitude * scifir::cos(new_latitude) * scifir::sin(new_longitude));
822 values.push_back(new_altitude * scifir::sin(new_latitude));
823 }

◆ set_position() [2/8]

void scifir::coordinates_nd< float >::set_position ( const vector< float > &  new_values)
inline

Definition at line 825 of file coordinates_nd.hpp.

826 {
827 values.clear();
828 values = new_values;
829 }

◆ set_position() [3/8]

void scifir::coordinates_nd< float >::set_position ( float  new_p,
const angle new_theta 
)
inline

Definition at line 786 of file coordinates_nd.hpp.

787 {
788 values.clear();
789 values.push_back(new_p * scifir::cos(new_theta));
790 values.push_back(new_p * scifir::sin(new_theta));
791 }

◆ set_position() [4/8]

void scifir::coordinates_nd< float >::set_position ( float  new_p,
const angle new_theta,
float  new_z 
)
inline

Definition at line 801 of file coordinates_nd.hpp.

802 {
803 values.clear();
804 values.push_back(new_p * scifir::cos(new_theta));
805 values.push_back(new_p * scifir::sin(new_theta));
806 values.push_back(new_z);
807 }

◆ set_position() [5/8]

void scifir::coordinates_nd< float >::set_position ( float  new_r,
const angle new_theta,
const angle new_phi 
)
inline

Definition at line 809 of file coordinates_nd.hpp.

810 {
811 values.clear();
812 values.push_back(new_r * scifir::cos(new_theta) * scifir::sin(new_phi));
813 values.push_back(new_r * scifir::sin(new_theta) * scifir::sin(new_phi));
814 values.push_back(new_r * scifir::cos(new_phi));
815 }

◆ set_position() [6/8]

void scifir::coordinates_nd< float >::set_position ( float  new_x)
inline

Definition at line 773 of file coordinates_nd.hpp.

774 {
775 values.clear();
776 values.push_back(new_x);
777 }

◆ set_position() [7/8]

void scifir::coordinates_nd< float >::set_position ( float  new_x,
float  new_y 
)
inline

Definition at line 779 of file coordinates_nd.hpp.

780 {
781 values.clear();
782 values.push_back(new_x);
783 values.push_back(new_y);
784 }

◆ set_position() [8/8]

void scifir::coordinates_nd< float >::set_position ( float  new_x,
float  new_y,
float  new_z 
)
inline

Definition at line 793 of file coordinates_nd.hpp.

794 {
795 values.clear();
796 values.push_back(new_x);
797 values.push_back(new_y);
798 values.push_back(new_z);
799 }

Member Data Documentation

◆ values

Definition at line 1056 of file coordinates_nd.hpp.


The documentation for this class was generated from the following file: