[IoId("00000000-c0a1-4c02-9e71-8b1d3f5a6e20")] public sealed class ConicFunction : FunctionWithCaching
conic section curve represented by a 3-point degree=2 nurbs curve with a weighted centre point. The corners can be filleted.

Constructors

ConicFunction

#
Create a default conic ease curve from (0,0) to (1,1).
public ConicFunction()

ConicFunction

#
public ConicFunction(
reader
)

ConicFunction

#
Create a new conic function.
public ConicFunction(
left,
Left primary grip. Left of this the function is horizontal at this level.
right,
Right primary grip. Right of this the function is horizontal at this level.
u,
Normalised interior x-coordinate (0 = left grip, 1 = right grip).
v,
Normalised interior y-coordinate (0 = left level, 1 = right level).
r
Fillet radius as a length in function space (0 = sharp corners).
)

Properties

Corner0

#
Gets the left primary grip. The function is horizontal at this level for all x ≤ Left.X.
public Point2d Corner0 { get; }

Corner1

#
Gets the right primary grip. The function is horizontal at this level for all x ≥ Right.X.
public Point2d Corner1 { get; }

Derivative

Gets a function which is the derivative of this function. The returned function may be either analytic or approximate.
public sealed override Function Derivative { get; }
inherited fromFunctionWithCaching

FilletRadius

#
Gets the requested fillet radius, a length in function space.
public double FilletRadius { get; }

Integral

Gets a function which is the indefinite integral of this function. The returned function may be analytic or approximate. Note that numeric approximation of indefinite integrals is a slow and not particularly high quality process.
public sealed override Function Integral { get; }
inherited fromFunctionWithCaching

Interior

#
Gets the absolute location of the interior control point the curve passes through.
public Point2d Interior { get; }

InteriorU

#
Gets the normalised interior x-coordinate (0 = left grip, 1 = right grip).
public double InteriorU { get; }

InteriorV

#
Gets the normalised interior y-coordinate (0 = left level, 1 = right level).
public double InteriorV { get; }

IsBelow

#
Gets whether the vertical-tangent corner is the right grip (as opposed to the left grip).
public bool IsBelow { get; }

Nomen

Gets a description of this function.
public sealed override Nomen Nomen { get; }
inherited fromFunctionWithCaching
Function.Nomen

Notation

Gets the notation for this function. Notation is aimed at humans and does not need to return a parseable string.
public override string Notation { get; }
inherited fromFunctionWithCaching

Ui

#
public override FunctionUi Ui { get; }
Function.Ui

Methods

Asymptotes

Returns an array of *all* the non-vertical asymptotes for this function. This property may return both null and empty arrays, implying no asymptotes. Due to the nature of non-vertical asymptotes, there can only be a finite amount of them.
public virtual Line[] Asymptotes()
inherited fromFunction

AutoCoDomain

Compute the automatic codomain for a given domain.
protected void AutoCoDomain(
x0,
Domain start.
x1,
Domain end.
out double
y0,
Lowest value in codomain.
out double
y1,
Highest value in codomain.
samples = 100
Samples.
)
inherited fromFunction

DomainEstimate

#
public override void DomainEstimate(
out double
x0,
out double
x1,
out double
y0,
out double
y1
)

EmitDerivative

Override this method to provide an analytic derivative.
protected virtual Function EmitDerivative()
inherited fromFunctionWithCaching

EmitIntegral

Override this method to provide an analytic indefinite integral.
protected virtual Function EmitIntegral()
inherited fromFunctionWithCaching

Holes

Returns a collection of domains for which this function is not defined. This method may return null or an empty array, implying no undefined domains. This method may also return domains outside of the specified interval.
public virtual Interval[] Holes(
x0,
Lower limit of query domain.
x1
Upper limit of query domain.
)
inherited fromFunction

Integrate

Evaluate the definite integral between two parameters. Unless a function specifically implements an analytic integral, this value will be approximate. Note to implementer: if you provide an analytic integral via the Function.Integral property, that function will be used to compute an analytic result. There is typically no reason to override this method.
public virtual double Integrate(
x0,
Integral start.
x1
Integral end.
)
inherited fromFunction
Definite integral from x0 to x1.

MaxFillet

#
The largest fillet radius (a function-space length) that keeps the corner fillet valid, i.e. its total x-footprint stays within the span width. Used to clamp the fillet grip.
public static double MaxFillet()

Poles

Returns an array of all the poles (i.e. vertical asymptotes) within a domain. This method may return both null and empty arrays, implying no poles. Furthermore this method may choose to return poles which fall outside of the given domain.
public virtual Pole[] Poles(
x0,
Lower limit of query domain.
x1
Upper limit of query domain.
)
inherited fromFunction

Store

#
public override void Store(
writer
)

Y

#
public override double Y()
Function.Y

YYYY

Evaluate a large amount of values. Functions may choose to use multiple threads to perform this calculation. This method should not throw, instead every failed evaluation will be represented by a NaN value.
public double[] YYYY(
x
Value to evaluate.
)
inherited fromFunction
Evaluation results. Array will contain double.NaN entries for failed evaluations.