TryGetParameter(Double, Double, out Double) Method

Definition

Assembly Broadside.dll

Returns the parametric value t of a point of the target space: the greatest s whose blend circle passes through it.

public bool TryGetParameter(double x, double y, scoped out double t)

Parameters

x
Double

The point's x coordinate in the target space.

y
Double

The point's y coordinate in the target space.

t
Double

The value of t (t₀ for extended points before the start, t₁ after the end).

Returns

Boolean
false when no blend circle passes through the point, so it is not painted.

Remarks

ISO 32000-2 §8.7.4.5.4. Solving |p − c(s)| = r(s) gives a s² − 2b s + c = 0 with a = d·d − Δr², b = q·d + r₀Δr, c = q·q − r₀² (d the centre displacement, Δr = r₁ − r₀, q = p − c₀); the larger root is taken when r(s) ≥ 0 and s is in [0, 1] or in an extended range, else the smaller root under the same test.