public static Hit FromSingle(BSMap map, JsonNote note) { return(new( note.Position() + .5f + note.Rotation() * -.5f, note.Position() + .5f + note.Rotation() * .5f, note.Time, map.BeatTimeToRealTime(note.Time), new List <JsonNote> { note } )); }
// https://github.com/Kylemc1413/MappingExtensions#precision-note-placement public static Vector2 Position(this JsonNote note) => new (ExtendedPositionToRealPosition(note.X), ExtendedPositionToRealPosition(note.Y));