Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
28
namespace 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
conservative_voxelization_segment
Function · 0.85
dot_perpendicular
Function · 0.85
line_constant
Method · 0.85
test_perpendicular
Function · 0.85
test_dot_perpendicular
Function · 0.85
Calls
1
value
Method · 0.45
Tested by
2
test_perpendicular
Function · 0.68
test_dot_perpendicular
Function · 0.68