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

Method line_constant

src/geode/geometry/basic_objects/infinite_line.cpp:74–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72 template < typename PointType, index_t dimension >
73 template < index_t T >
74 std::enable_if_t< T == 2, double >
75 GenericLine< PointType, dimension >::line_constant() const
76 {
77 double line_constant{ 0.0 };
78 const auto perpendicular_direction = perpendicular( direction() );
79 for( const auto i : LRange{ dimension } )
80 {
81 line_constant -=
82 origin().value( i ) * perpendicular_direction.value( i );
83 }
84 return line_constant;
85 }
86
87 template < index_t dimension >
88 OwnerInfiniteLine< dimension >::OwnerInfiniteLine(

Callers

nothing calls this directly

Calls 2

perpendicularFunction · 0.85
valueMethod · 0.45

Tested by

no test coverage detected