MCPcopy Create free account
hub / github.com/Geode-solutions/OpenGeode / global_coordinates

Method global_coordinates

src/geode/geometry/coordinate_system.cpp:167–176  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

165
166 template < index_t dimension >
167 Point< dimension > CoordinateSystem< dimension >::global_coordinates(
168 const Point< dimension >& coordinates ) const
169 {
170 auto global_point = origin_;
171 for( const auto d : LRange{ dimension } )
172 {
173 global_point += this->direction( d ) * coordinates.value( d );
174 }
175 return global_point;
176 }
177
178 template < index_t dimension >
179 std::string CoordinateSystem< dimension >::string() const

Callers 2

check_pointFunction · 0.80

Calls 2

directionMethod · 0.45
valueMethod · 0.45

Tested by 1

check_pointFunction · 0.64