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

Method cross

include/geode/geometry/vector.hpp:123–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

121 }
122
123 [[nodiscard]] Vector cross( const Vector &other ) const
124 {
125 static_assert(
126 dimension == 3, "Cross product only possible in 3D" );
127 return Vector{ { this->value( 1 ) * other.value( 2 )
128 - this->value( 2 ) * other.value( 1 ),
129 this->value( 2 ) * other.value( 0 )
130 - this->value( 0 ) * other.value( 2 ),
131 this->value( 0 ) * other.value( 1 )
132 - this->value( 1 ) * other.value( 0 ) } };
133 }
134
135 [[nodiscard]] geode::local_index_t most_meaningful_axis() const
136 {

Callers 15

compute_orthogonal_basisFunction · 0.80
plane_plane_intersectionFunction · 0.80
check_frameFunction · 0.80
tetrahedron_aspect_ratioFunction · 0.80
line_triangle_distanceFunction · 0.80
intersects< 3 >Method · 0.80

Calls 1

valueMethod · 0.45

Tested by 2

test_operationsFunction · 0.64
test_operationsFunction · 0.64