Struct Arc
- Namespace
- Sigil.Sound
- Assembly
- Sigil.Sound.Notes.dll
A stretch of cycle time, from Sigil.Sound.Arc.Begin up to but not including Sigil.Sound.Arc.End.
public readonly record struct Arc : IEquatable<Arc>Implements
Inherited Members
Constructors
Arc(Fraction, Fraction)
A stretch of cycle time, from Sigil.Sound.Arc.Begin up to but not including Sigil.Sound.Arc.End.
public Arc(Fraction Begin, Fraction End)Parameters
Properties
Begin
public Fraction Begin { get; init; }Property Value
End
public Fraction End { get; init; }Property Value
Length
The length of the arc, in cycles.
public Fraction Length { get; }Property Value
Methods
SplitCycles()
Splits the arc at every cycle boundary; a point arc comes back as itself.
public CycleSplitter SplitCycles()Returns
ToString()
The arc as [begin, end).
public override string ToString()Returns
TryIntersect(Arc, out Arc)
The part both arcs cover; false when they do not overlap. A point arc overlaps an arc that contains it.
public bool TryIntersect(Arc other, out Arc result)