This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vec4 Intersection::newtonStep(const glm::vec4& params){ | |
// The last point found on the intersection curve | |
const TracePoint& lastPoint = getLastPoint(); | |
vec4 lastParam = lastPoint.params; | |
// Determines the direction | |
int r = 1; | |
if(currentTraceStatus == TraceStatus::BACKWARDS) | |
r = -1; | |