Skip to content

Instantly share code, notes, and snippets.

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;