Added a static dim function to Point3 for generic detection of dimension
							parent
							
								
									529fc5536b
								
							
						
					
					
						commit
						d895cb90dc
					
				|  | @ -20,6 +20,9 @@ namespace gtsam { | |||
| 
 | ||||
|   /** A 3D point */ | ||||
|   class Point3: Testable<Point3>, public Lie<Point3> { | ||||
|   public: | ||||
| 	  /// dimension of the variable - used to autodetect sizes
 | ||||
| 	  static inline size_t dim() {return 3;} | ||||
|   private: | ||||
|     double x_, y_, z_;   | ||||
| 		 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue