| 24 | } |
| 25 | |
| 26 | Primitives::ConeSegment Primitives::Plane::intersectWithPlane( const Plane& other ) const |
| 27 | { |
| 28 | Vector3f point = intersectWithLine( { .referencePoint = other.center, .dir = cross( other.normal, cross( other.normal, normal ) ).normalized() } ).center; |
| 29 | return toPrimitive( Line( point, cross( normal, other.normal ) ) ); |
| 30 | } |
| 31 | |
| 32 | Primitives::ConeSegment toPrimitive( const Line3f& line ) |
| 33 | { |
no test coverage detected