MCPcopy Create free account
hub / github.com/MeshInspector/MeshLib / intersectWithLine

Method intersectWithLine

source/MRMesh/MRFeatures.cpp:42–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40}
41
42Primitives::Sphere Primitives::Plane::intersectWithLine( const ConeSegment& line ) const
43{
44 return toPrimitive( line.referencePoint - dot( line.referencePoint - center, normal ) / dot( line.dir, normal ) * line.dir );
45}
46
47Primitives::Sphere Primitives::ConeSegment::centerPoint() const
48{

Callers 1

measureMethod · 0.80

Calls 2

toPrimitiveFunction · 0.70
dotFunction · 0.70

Tested by

no test coverage detected