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

Function perpendicular

src/geode/geometry/perpendicular.cpp:30–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28namespace geode
29{
30 Vector2D perpendicular( const Vector2D& v )
31 {
32 return Vector2D{ { v.value( 1 ), -v.value( 0 ) } };
33 }
34
35 double dot_perpendicular( const Vector2D& v0, const Vector2D& v1 )
36 {

Callers 5

dot_perpendicularFunction · 0.85
line_constantMethod · 0.85
test_perpendicularFunction · 0.85
test_dot_perpendicularFunction · 0.85

Calls 1

valueMethod · 0.45

Tested by 2

test_perpendicularFunction · 0.68
test_dot_perpendicularFunction · 0.68