Esempio n. 1
0
 public ArcSegment(LineArtVertex v0, LineArtVertex v1, Vector2d center,
                   bool?clockwise = null, int?requestedSegments = null)
     : base(v0, v1)
 {
     Center    = center;
     Clockwise = clockwise ?? SMath.CrossZ(V0.Pos - Center, V1.Pos - Center) < 0;
     // XXX: Might be better to come up with something based on RADIANS_PER_PIECE
     // and the angle span of the arc.
     RequestedSegments = requestedSegments ?? DEFAULT_SEGMENTS;
 }