|
ICurveGetNextDiscontinuity Method
|
Searches for a derivative, tangent, or curvature discontinuity.
Namespace:
Karamba.Geometry
Assembly:
KarambaCommon (in KarambaCommon.dll) Version: 2.2.0.4 (2.2.0.4)
Syntaxbool GetNextDiscontinuity(
Continuity3 continuityType,
double t0,
double t1,
out double t
)
Function GetNextDiscontinuity (
continuityType As Continuity3,
t0 As Double,
t1 As Double,
<OutAttribute> ByRef t As Double
) As Boolean
bool GetNextDiscontinuity(
Continuity3 continuityType,
double t0,
double t1,
[OutAttribute] double% t
)
abstract GetNextDiscontinuity :
continuityType : Continuity3 *
t0 : float *
t1 : float *
t : float byref -> bool
Parameters
- continuityType
- Type: Karamba.GeometryContinuity3
Type of continuity to search for. - t0
- Type: SystemDouble
Search begins at t0. If there is a discontinuity at t0, it will be ignored. This makes it
possible to repeatedly call GetNextDiscontinuity() and step through the discontinuities.
- t1
- Type: SystemDouble
(t0 != t1) If there is a discontinuity at t1 it will be ignored unless continuityType is
a locus discontinuity type and t1 is at the start or end of the curve.
- t
- Type: SystemDouble
If a discontinuity is found, then t reports the parameter at the discontinuity.
Return Value
Type:
Boolean
Parametric continuity tests c = (C0_continuous, ..., G2_continuous):
true if a parametric discontinuity was found strictly between t0 and t1. Note well that
all curves are parametrically continuous at the ends of their domains.
Locus continuity tests c = (C0_locus_continuous, ...,G2_locus_continuous):
true if a locus discontinuity was found strictly between t0 and t1 or at t1 is the at the end
of a curve. Note well that all open curves (IsClosed()=false) are locus discontinuous at the
ends of their domains. All closed curves (IsClosed()=true) are at least C0_locus_continuous at
the ends of their domains.
See Also